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