naiveproxy/src/net/cert
2021-05-21 00:50:53 +08:00
..
internal Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
asn1_util.cc Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
asn1_util.h Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
caching_cert_verifier.cc Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
caching_cert_verifier.h Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
cert_and_ct_verifier.cc Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
cert_and_ct_verifier.h Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
cert_database_mac.cc Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
cert_database.cc Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
cert_database.h Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
cert_net_fetcher.h Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
cert_status_flags_list.h Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
cert_status_flags.cc Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
cert_status_flags.h Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
cert_type.h Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
cert_verifier.cc Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
cert_verifier.h Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
cert_verify_proc_android.cc Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
cert_verify_proc_android.h Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
cert_verify_proc_blocklist.inc Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
cert_verify_proc_builtin.cc Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
cert_verify_proc_builtin.h Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
cert_verify_proc_ios.cc Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
cert_verify_proc_ios.h Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
cert_verify_proc_mac.cc Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
cert_verify_proc_mac.h Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
cert_verify_proc_win.cc Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
cert_verify_proc_win.h Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
cert_verify_proc.cc Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
cert_verify_proc.h Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
cert_verify_result.cc Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
cert_verify_result.h Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
client_cert_verifier.h Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
coalescing_cert_verifier.cc Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
coalescing_cert_verifier.h Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
crl_set.cc Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
crl_set.h Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
ct_log_response_parser.cc Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
ct_log_response_parser.h Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
ct_log_verifier_util.cc Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
ct_log_verifier_util.h Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
ct_log_verifier.cc Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
ct_log_verifier.h Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
ct_objects_extractor.cc Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
ct_objects_extractor.h Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
ct_policy_enforcer.cc Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
ct_policy_enforcer.h Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
ct_policy_status.h Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
ct_sct_to_string.cc Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
ct_sct_to_string.h Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
ct_serialization.cc Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
ct_serialization.h Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
ct_signed_certificate_timestamp_log_param.cc Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
ct_signed_certificate_timestamp_log_param.h Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
ct_verifier.h Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
DIR_METADATA Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
do_nothing_ct_verifier.cc Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
do_nothing_ct_verifier.h Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
ev_root_ca_metadata.cc Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
ev_root_ca_metadata.h Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
known_roots_mac.cc Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
known_roots_mac.h Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
known_roots_nss.cc Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
known_roots_nss.h Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
known_roots_win.cc Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
known_roots_win.h Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
known_roots.cc Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
known_roots.h Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
merkle_audit_proof.cc Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
merkle_audit_proof.h Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
merkle_consistency_proof.cc Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
merkle_consistency_proof.h Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
merkle_tree_leaf.cc Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
merkle_tree_leaf.h Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
mock_cert_verifier.cc Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
mock_cert_verifier.h Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
mock_client_cert_verifier.cc Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
mock_client_cert_verifier.h Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
multi_log_ct_verifier.cc Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
multi_log_ct_verifier.h Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
multi_threaded_cert_verifier.cc Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
multi_threaded_cert_verifier.h Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
nss_cert_database_chromeos.cc Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
nss_cert_database_chromeos.h Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
nss_cert_database.cc Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
nss_cert_database.h Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
nss_profile_filter_chromeos.cc Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
nss_profile_filter_chromeos.h Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
ocsp_revocation_status.h Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
ocsp_verify_result.cc Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
ocsp_verify_result.h Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
OWNERS Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
pem.cc Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
pem.h Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
README.md Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
root_cert_list_generated.h Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
scoped_nss_types.h Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
sct_auditing_delegate.h Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
sct_status_flags.cc Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
sct_status_flags.h Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
signed_certificate_timestamp_and_status.cc Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
signed_certificate_timestamp_and_status.h Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
signed_certificate_timestamp.cc Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
signed_certificate_timestamp.h Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
signed_tree_head.cc Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
signed_tree_head.h Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
symantec_certs.cc Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
symantec_certs.h Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
test_keychain_search_list_mac.cc Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
test_keychain_search_list_mac.h Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
test_root_certs_android.cc Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
test_root_certs_builtin.cc Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
test_root_certs_mac.cc Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
test_root_certs_win.cc Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
test_root_certs.cc Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
test_root_certs.h Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
trial_comparison_cert_verifier.cc Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
trial_comparison_cert_verifier.h Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
x509_cert_types.cc Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
x509_cert_types.h Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
x509_certificate_net_log_param.cc Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
x509_certificate_net_log_param.h Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
x509_certificate.cc Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
x509_certificate.h Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
x509_util_android.cc Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
x509_util_ios_and_mac.cc Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
x509_util_ios_and_mac.h Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
x509_util_ios.cc Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
x509_util_ios.h Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
x509_util_mac.cc Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
x509_util_mac.h Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
x509_util_nss.cc Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
x509_util_nss.h Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
x509_util_win.cc Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
x509_util_win.h Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
x509_util.cc Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00
x509_util.h Import chromium-90.0.4430.85 2021-05-21 00:50:53 +08:00

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.