tree: 954aacf252a409611eef9f0bbe239785d11ddc14 [path history] [tgz]
  1. internal/
  2. asn1_util.cc
  3. asn1_util.h
  4. BUILD.gn
  5. caching_cert_verifier.cc
  6. caching_cert_verifier.h
  7. caching_cert_verifier_unittest.cc
  8. cert_database.cc
  9. cert_database.h
  10. cert_database_mac.cc
  11. cert_database_unittest.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_unittest.cc
  32. cert_verify_result.cc
  33. cert_verify_result.h
  34. client_cert_verifier.h
  35. coalescing_cert_verifier.cc
  36. coalescing_cert_verifier.h
  37. coalescing_cert_verifier_unittest.cc
  38. crl_set.cc
  39. crl_set.h
  40. crl_set_fuzzer.cc
  41. crl_set_unittest.cc
  42. ct_log_response_parser.cc
  43. ct_log_response_parser.h
  44. ct_log_response_parser_unittest.cc
  45. ct_log_verifier.cc
  46. ct_log_verifier.h
  47. ct_log_verifier_unittest.cc
  48. ct_log_verifier_util.cc
  49. ct_log_verifier_util.h
  50. ct_objects_extractor.cc
  51. ct_objects_extractor.h
  52. ct_objects_extractor_unittest.cc
  53. ct_policy_enforcer.cc
  54. ct_policy_enforcer.h
  55. ct_policy_status.cc
  56. ct_policy_status.h
  57. ct_sct_to_string.cc
  58. ct_sct_to_string.h
  59. ct_serialization.cc
  60. ct_serialization.h
  61. ct_serialization_unittest.cc
  62. ct_signed_certificate_timestamp_log_param.cc
  63. ct_signed_certificate_timestamp_log_param.h
  64. ct_verifier.h
  65. decode_signed_certificate_timestamp_fuzzer.cc
  66. DIR_METADATA
  67. do_nothing_ct_verifier.cc
  68. do_nothing_ct_verifier.h
  69. ev_root_ca_metadata.cc
  70. ev_root_ca_metadata.h
  71. ev_root_ca_metadata_unittest.cc
  72. known_roots.cc
  73. known_roots.h
  74. known_roots_unittest.cc
  75. merkle_audit_proof.cc
  76. merkle_audit_proof.h
  77. merkle_audit_proof_unittest.cc
  78. merkle_consistency_proof.cc
  79. merkle_consistency_proof.h
  80. merkle_tree_leaf.cc
  81. merkle_tree_leaf.h
  82. merkle_tree_leaf_unittest.cc
  83. mock_cert_net_fetcher.cc
  84. mock_cert_net_fetcher.h
  85. mock_cert_verifier.cc
  86. mock_cert_verifier.h
  87. mock_client_cert_verifier.cc
  88. mock_client_cert_verifier.h
  89. multi_log_ct_verifier.cc
  90. multi_log_ct_verifier.h
  91. multi_log_ct_verifier_unittest.cc
  92. multi_threaded_cert_verifier.cc
  93. multi_threaded_cert_verifier.h
  94. multi_threaded_cert_verifier_unittest.cc
  95. nss_cert_database.cc
  96. nss_cert_database.h
  97. nss_cert_database_chromeos.cc
  98. nss_cert_database_chromeos.h
  99. nss_cert_database_chromeos_unittest.cc
  100. nss_cert_database_unittest.cc
  101. nss_profile_filter_chromeos.cc
  102. nss_profile_filter_chromeos.h
  103. nss_profile_filter_chromeos_unittest.cc
  104. OWNERS
  105. README.md
  106. root_cert_list_generated.h
  107. root_store.proto
  108. scoped_nss_types.h
  109. sct_auditing_delegate.h
  110. sct_status_flags.cc
  111. sct_status_flags.h
  112. signed_certificate_timestamp.cc
  113. signed_certificate_timestamp.h
  114. signed_certificate_timestamp_and_status.cc
  115. signed_certificate_timestamp_and_status.h
  116. signed_certificate_timestamp_unittest.cc
  117. signed_tree_head.cc
  118. signed_tree_head.h
  119. symantec_certs.cc
  120. symantec_certs.h
  121. symantec_certs_unittest.cc
  122. test_keychain_search_list_mac.cc
  123. test_keychain_search_list_mac.h
  124. test_root_certs.cc
  125. test_root_certs.h
  126. test_root_certs_android.cc
  127. test_root_certs_builtin.cc
  128. test_root_certs_ios.cc
  129. test_root_certs_unittest.cc
  130. time_conversions.cc
  131. time_conversions.h
  132. time_conversions_unittest.cc
  133. x509_cert_types.cc
  134. x509_cert_types.h
  135. x509_cert_types_unittest.cc
  136. x509_certificate.cc
  137. x509_certificate.h
  138. x509_certificate_fuzztest.cc
  139. x509_certificate_net_log_param.cc
  140. x509_certificate_net_log_param.h
  141. x509_certificate_unittest.cc
  142. x509_util.cc
  143. x509_util.h
  144. x509_util_android.cc
  145. x509_util_apple.cc
  146. x509_util_apple.h
  147. x509_util_apple_unittest.cc
  148. x509_util_nss.cc
  149. x509_util_nss.h
  150. x509_util_nss_unittest.cc
  151. x509_util_unittest.cc
  152. x509_util_win.cc
  153. 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 user and enterprise configured trusted root certificates. The publicly trusted root certificates are supplied by the Chrome Root Store.

The other CertVerifyProc implementations are for integrating with the underlying platform's certificate verification library. There are 2 platform implementations: CertVerifyProcAndroid and CertVerifyProcIOS.

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.