[go: nahoru, domu]

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