tree: 9e55bec5c8303f885bfec60c2813a353bccd84a9 [path history] [tgz]
  1. DIR_METADATA
  2. OWNERS
  3. README.md
  4. asn1_util.cc
  5. asn1_util.h
  6. caching_cert_verifier.cc
  7. caching_cert_verifier.h
  8. caching_cert_verifier_unittest.cc
  9. cert_database.cc
  10. cert_database.h
  11. cert_database_mac.cc
  12. cert_net_fetcher.h
  13. cert_status_flags.cc
  14. cert_status_flags.h
  15. cert_status_flags_list.h
  16. cert_type.h
  17. cert_verifier.cc
  18. cert_verifier.h
  19. cert_verifier_unittest.cc
  20. cert_verify_proc.cc
  21. cert_verify_proc.h
  22. cert_verify_proc_android.cc
  23. cert_verify_proc_android.h
  24. cert_verify_proc_android_unittest.cc
  25. cert_verify_proc_blocklist.inc
  26. cert_verify_proc_builtin.cc
  27. cert_verify_proc_builtin.h
  28. cert_verify_proc_builtin_unittest.cc
  29. cert_verify_proc_ios.cc
  30. cert_verify_proc_ios.h
  31. cert_verify_proc_mac.cc
  32. cert_verify_proc_mac.h
  33. cert_verify_proc_mac_unittest.cc
  34. cert_verify_proc_unittest.cc
  35. cert_verify_proc_win.cc
  36. cert_verify_proc_win.h
  37. cert_verify_result.cc
  38. cert_verify_result.h
  39. client_cert_verifier.h
  40. coalescing_cert_verifier.cc
  41. coalescing_cert_verifier.h
  42. coalescing_cert_verifier_unittest.cc
  43. crl_set.cc
  44. crl_set.h
  45. crl_set_fuzzer.cc
  46. crl_set_unittest.cc
  47. ct_log_response_parser.cc
  48. ct_log_response_parser.h
  49. ct_log_response_parser_unittest.cc
  50. ct_log_verifier.cc
  51. ct_log_verifier.h
  52. ct_log_verifier_unittest.cc
  53. ct_log_verifier_util.cc
  54. ct_log_verifier_util.h
  55. ct_objects_extractor.cc
  56. ct_objects_extractor.h
  57. ct_objects_extractor_unittest.cc
  58. ct_policy_enforcer.cc
  59. ct_policy_enforcer.h
  60. ct_policy_status.h
  61. ct_sct_to_string.cc
  62. ct_sct_to_string.h
  63. ct_serialization.cc
  64. ct_serialization.h
  65. ct_serialization_unittest.cc
  66. ct_signed_certificate_timestamp_log_param.cc
  67. ct_signed_certificate_timestamp_log_param.h
  68. ct_verifier.h
  69. decode_signed_certificate_timestamp_fuzzer.cc
  70. do_nothing_ct_verifier.cc
  71. do_nothing_ct_verifier.h
  72. ev_root_ca_metadata.cc
  73. ev_root_ca_metadata.h
  74. ev_root_ca_metadata_unittest.cc
  75. internal/
  76. known_roots.cc
  77. known_roots.h
  78. known_roots_mac.cc
  79. known_roots_mac.h
  80. known_roots_nss.cc
  81. known_roots_nss.h
  82. known_roots_unittest.cc
  83. known_roots_win.cc
  84. known_roots_win.h
  85. merkle_audit_proof.cc
  86. merkle_audit_proof.h
  87. merkle_audit_proof_unittest.cc
  88. merkle_consistency_proof.cc
  89. merkle_consistency_proof.h
  90. merkle_tree_leaf.cc
  91. merkle_tree_leaf.h
  92. merkle_tree_leaf_unittest.cc
  93. mock_cert_verifier.cc
  94. mock_cert_verifier.h
  95. mock_client_cert_verifier.cc
  96. mock_client_cert_verifier.h
  97. multi_log_ct_verifier.cc
  98. multi_log_ct_verifier.h
  99. multi_log_ct_verifier_unittest.cc
  100. multi_threaded_cert_verifier.cc
  101. multi_threaded_cert_verifier.h
  102. multi_threaded_cert_verifier_unittest.cc
  103. nss_cert_database.cc
  104. nss_cert_database.h
  105. nss_cert_database_chromeos.cc
  106. nss_cert_database_chromeos.h
  107. nss_cert_database_chromeos_unittest.cc
  108. nss_cert_database_unittest.cc
  109. nss_profile_filter_chromeos.cc
  110. nss_profile_filter_chromeos.h
  111. nss_profile_filter_chromeos_unittest.cc
  112. ocsp_revocation_status.h
  113. ocsp_verify_result.cc
  114. ocsp_verify_result.h
  115. pem.cc
  116. pem.h
  117. pem_unittest.cc
  118. root_cert_list_generated.h
  119. scoped_nss_types.h
  120. sct_auditing_delegate.h
  121. sct_status_flags.cc
  122. sct_status_flags.h
  123. signed_certificate_timestamp.cc
  124. signed_certificate_timestamp.h
  125. signed_certificate_timestamp_and_status.cc
  126. signed_certificate_timestamp_and_status.h
  127. signed_certificate_timestamp_unittest.cc
  128. signed_tree_head.cc
  129. signed_tree_head.h
  130. symantec_certs.cc
  131. symantec_certs.h
  132. symantec_certs_unittest.cc
  133. test_keychain_search_list_mac.cc
  134. test_keychain_search_list_mac.h
  135. test_root_certs.cc
  136. test_root_certs.h
  137. test_root_certs_android.cc
  138. test_root_certs_builtin.cc
  139. test_root_certs_mac.cc
  140. test_root_certs_unittest.cc
  141. test_root_certs_win.cc
  142. trial_comparison_cert_verifier.cc
  143. trial_comparison_cert_verifier.h
  144. trial_comparison_cert_verifier_unittest.cc
  145. x509_cert_types.cc
  146. x509_cert_types.h
  147. x509_cert_types_unittest.cc
  148. x509_certificate.cc
  149. x509_certificate.h
  150. x509_certificate_net_log_param.cc
  151. x509_certificate_net_log_param.h
  152. x509_certificate_unittest.cc
  153. x509_util.cc
  154. x509_util.h
  155. x509_util_android.cc
  156. x509_util_ios.cc
  157. x509_util_ios.h
  158. x509_util_ios_and_mac.cc
  159. x509_util_ios_and_mac.h
  160. x509_util_ios_and_mac_unittest.cc
  161. x509_util_mac.cc
  162. x509_util_mac.h
  163. x509_util_nss.cc
  164. x509_util_nss.h
  165. x509_util_nss_unittest.cc
  166. x509_util_unittest.cc
  167. x509_util_win.cc
  168. x509_util_win.h
net/cert/README.md

Certificate verification

This directory contains the core code for verifying server certificates. Limited support is also included for verifying client certificates, but only to the extent they chain to a server-supplied set of issuers.

Server certificate verification emphasizes the standards/policy for publicly trusted certificates:

  • Basic X.509 digital certificates
  • RFC 5280
  • CA/Browser Forum Baseline Requirements
  • CRLSets
  • Certificate Transparency

The core logic of certificate verification is implemented synchronously, as it may need to integrate with synchronous OS-provided APIs. This synchronous implementation is performed through the CertVerifyProc interface, which is a thread-agnostic/thread-safe interface that can be used to verify certificates synchronously on arbitrary worker threads.

The top-level interface for verifying server certificates is the asynchronous CertVerifier.

MultiThreadedCertVerifier is an implementation of CertVerifier that executes CertVerifyProc synchronously on worker threads.

CertVerifyProcBuiltin is a cross-platform implementation which implements path building internally. It only relies on platform integrations for obtaining the trusted root certificates.

The other CertVerifyProc implementations are for integrating with the underlying platform‘s certificate verification library. For example, CertVerifyProcWin delegates certificate verification to Windows’ CryptoAPI.

Browser-specific policy checks are applied even when using the platform's certificate verifier. For instance, a certificate chain the OS deemed valid could ultimately be rejected by CertVerifyProc since it independently checks the chain for CRLSet revocation, use of weak keys, Baseline Requirements validity, name constraints, weak signature algorithms, and more.