tree: 52c95e6f38a23981f1296151963316d0163b91da [path history] [tgz]
  1. internal/
  2. pki/
  3. asn1_util.cc
  4. asn1_util.h
  5. BUILD.gn
  6. caching_cert_verifier.cc
  7. caching_cert_verifier.h
  8. caching_cert_verifier_unittest.cc
  9. cert_and_ct_verifier.cc
  10. cert_and_ct_verifier.h
  11. cert_and_ct_verifier_unittest.cc
  12. cert_database.cc
  13. cert_database.h
  14. cert_database_mac.cc
  15. cert_net_fetcher.h
  16. cert_status_flags.cc
  17. cert_status_flags.h
  18. cert_status_flags_list.h
  19. cert_type.h
  20. cert_verifier.cc
  21. cert_verifier.h
  22. cert_verifier_unittest.cc
  23. cert_verify_proc.cc
  24. cert_verify_proc.h
  25. cert_verify_proc_android.cc
  26. cert_verify_proc_android.h
  27. cert_verify_proc_android_unittest.cc
  28. cert_verify_proc_blocklist.inc
  29. cert_verify_proc_builtin.cc
  30. cert_verify_proc_builtin.h
  31. cert_verify_proc_builtin_unittest.cc
  32. cert_verify_proc_ios.cc
  33. cert_verify_proc_ios.h
  34. cert_verify_proc_unittest.cc
  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. decode_signed_certificate_timestamp_fuzzer.cc
  68. DIR_METADATA
  69. do_nothing_ct_verifier.cc
  70. do_nothing_ct_verifier.h
  71. ev_root_ca_metadata.cc
  72. ev_root_ca_metadata.h
  73. ev_root_ca_metadata_unittest.cc
  74. known_roots.cc
  75. known_roots.h
  76. known_roots_nss.cc
  77. known_roots_nss.h
  78. known_roots_unittest.cc
  79. merkle_audit_proof.cc
  80. merkle_audit_proof.h
  81. merkle_audit_proof_unittest.cc
  82. merkle_consistency_proof.cc
  83. merkle_consistency_proof.h
  84. merkle_tree_leaf.cc
  85. merkle_tree_leaf.h
  86. merkle_tree_leaf_unittest.cc
  87. mock_cert_net_fetcher.cc
  88. mock_cert_net_fetcher.h
  89. mock_cert_verifier.cc
  90. mock_cert_verifier.h
  91. mock_client_cert_verifier.cc
  92. mock_client_cert_verifier.h
  93. multi_log_ct_verifier.cc
  94. multi_log_ct_verifier.h
  95. multi_log_ct_verifier_unittest.cc
  96. multi_threaded_cert_verifier.cc
  97. multi_threaded_cert_verifier.h
  98. multi_threaded_cert_verifier_unittest.cc
  99. nss_cert_database.cc
  100. nss_cert_database.h
  101. nss_cert_database_chromeos.cc
  102. nss_cert_database_chromeos.h
  103. nss_cert_database_chromeos_unittest.cc
  104. nss_cert_database_unittest.cc
  105. nss_profile_filter_chromeos.cc
  106. nss_profile_filter_chromeos.h
  107. nss_profile_filter_chromeos_unittest.cc
  108. ocsp_revocation_status.h
  109. ocsp_verify_result.cc
  110. ocsp_verify_result.h
  111. OWNERS
  112. pem.cc
  113. pem.h
  114. pem_unittest.cc
  115. README.md
  116. root_cert_list_generated.h
  117. root_store.proto
  118. scoped_nss_types.h
  119. sct_auditing_delegate.h
  120. sct_status_flags.cc
  121. sct_status_flags.h
  122. signed_certificate_timestamp.cc
  123. signed_certificate_timestamp.h
  124. signed_certificate_timestamp_and_status.cc
  125. signed_certificate_timestamp_and_status.h
  126. signed_certificate_timestamp_unittest.cc
  127. signed_tree_head.cc
  128. signed_tree_head.h
  129. symantec_certs.cc
  130. symantec_certs.h
  131. symantec_certs_unittest.cc
  132. test_keychain_search_list_mac.cc
  133. test_keychain_search_list_mac.h
  134. test_root_certs.cc
  135. test_root_certs.h
  136. test_root_certs_android.cc
  137. test_root_certs_builtin.cc
  138. test_root_certs_ios.cc
  139. test_root_certs_unittest.cc
  140. test_root_certs_win.cc
  141. trial_comparison_cert_verifier.cc
  142. trial_comparison_cert_verifier.h
  143. trial_comparison_cert_verifier_unittest.cc
  144. trial_comparison_cert_verifier_util.cc
  145. trial_comparison_cert_verifier_util.h
  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_apple.cc
  158. x509_util_apple.h
  159. x509_util_apple_unittest.cc
  160. x509_util_nss.cc
  161. x509_util_nss.h
  162. x509_util_nss_unittest.cc
  163. x509_util_unittest.cc
  164. x509_util_win.cc
  165. 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.