• Home
  • Annotate
  • current directory
Name Date Size #Lines LOC

..22-Aug-2025-

basic-constraints-pathlen-0-self-issued/22-Aug-2025-

expired-intermediate/22-Aug-2025-

expired-root/22-Aug-2025-

expired-target/22-Aug-2025-

incorrect-trust-anchor/22-Aug-2025-

intermediate-and-target-wrong-signature/22-Aug-2025-

intermediate-basic-constraints-ca-false/22-Aug-2025-

intermediate-basic-constraints-not-critical/22-Aug-2025-

intermediate-eku-any-and-clientauth/22-Aug-2025-

intermediate-eku-c2pamanifest/22-Aug-2025-

intermediate-eku-c2patimestamping/22-Aug-2025-

intermediate-eku-clientauth/22-Aug-2025-

intermediate-eku-mlsclientauth/22-Aug-2025-

intermediate-eku-mlsclientauth-extra/22-Aug-2025-

intermediate-eku-server-gated-crypto/22-Aug-2025-

intermediate-invalid-spki/22-Aug-2025-

intermediate-lacks-basic-constraints/22-Aug-2025-

intermediate-lacks-signing-key-usage/22-Aug-2025-

intermediate-signed-with-sha1/22-Aug-2025-

intermediate-unknown-critical-extension/22-Aug-2025-

intermediate-unknown-non-critical-extension/22-Aug-2025-

intermediate-wrong-signature-no-authority-key-identifier/22-Aug-2025-

issuer-and-subject-not-byte-for-byte-equal/22-Aug-2025-

key-rollover/22-Aug-2025-

many-names/22-Aug-2025-

non-self-signed-root/22-Aug-2025-

pkits_errors/22-Aug-2025-

policies-inhibit-anypolicy-by-root-fail/22-Aug-2025-

policies-inhibit-anypolicy-by-root-ok/22-Aug-2025-

policies-inhibit-mapping-by-root-fail/22-Aug-2025-

policies-inhibit-mapping-by-root-ok/22-Aug-2025-

policies-ok/22-Aug-2025-

policies-on-root-ok/22-Aug-2025-

policies-on-root-wrong/22-Aug-2025-

policies-required-by-root-fail/22-Aug-2025-

policies-required-by-root-ok/22-Aug-2025-

policy-mappings-on-root-fail/22-Aug-2025-

policy-mappings-on-root-ok/22-Aug-2025-

root-basic-constraints-ca-false/22-Aug-2025-

root-eku-clientauth/22-Aug-2025-

root-lacks-basic-constraints/22-Aug-2025-

root-lacks-keycertsign-key-usage/22-Aug-2025-

target-and-intermediate/22-Aug-2025-

target-eku-any/22-Aug-2025-

target-eku-clientauth/22-Aug-2025-

target-eku-many/22-Aug-2025-

target-eku-none/22-Aug-2025-

target-has-512bit-rsa-key/22-Aug-2025-

target-has-ca-basic-constraints/22-Aug-2025-

target-has-keycertsign-but-not-ca/22-Aug-2025-

target-has-pathlen-but-not-ca/22-Aug-2025-

target-msapplicationpolicies-and-eku/22-Aug-2025-

target-msapplicationpolicies-no-eku/22-Aug-2025-

target-not-end-entity/22-Aug-2025-

target-only/22-Aug-2025-

target-selfissued/22-Aug-2025-

target-selfsigned/22-Aug-2025-

target-serverauth-various-keyusages/22-Aug-2025-

target-signed-by-512bit-rsa/22-Aug-2025-

target-signed-using-ecdsa/22-Aug-2025-

target-signed-with-sha1/22-Aug-2025-

target-unknown-critical-extension/22-Aug-2025-

target-wrong-signature/22-Aug-2025-

target-wrong-signature-no-authority-key-identifier/22-Aug-2025-

unknown-critical-policy-qualifier/22-Aug-2025-

unknown-non-critical-policy-qualifier/22-Aug-2025-

violates-basic-constraints-pathlen-0/22-Aug-2025-

violates-pathlen-1-from-root/22-Aug-2025-

README A D22-Aug-20253.1 KiB8866

generate-all.sh A D22-Aug-20251 KiB3710

rebase-errors.py A D22-Aug-20254.3 KiB14084

README

1This directory contains test data for verifying certificate chains.
2
3Tests are grouped into directories that contain the keys, python to generate
4chains, and test expectations. "DIR" is used as a generic placeholder below to
5identify such a directory.
6
7===============================
8DIR/generate-chains.py
9===============================
10
11Python script that generates one or more ".pem" file containing a sequence of
12CERTIFICATE blocks. In most cases it will generate a single chain called
13"chain.pem".
14
15===============================
16DIR/keys/*.key
17===============================
18
19The keys used (as well as generated) by the .py file generate-chains.py. The
20private keys shouldn't be needed to run the tests, however are useful when
21re-generating the test data to have stable results (at least for signature
22types which are deterministic, like RSASSA PKCS#1 which is used by most of the
23certificates data).
24
25===============================
26DIR/*.pem
27===============================
28
29A sequence of CERTIFICATE blocks that was created by the generate-chains.py
30script. (Although in a few cases there are manually created .pem files that
31lack a generator script).
32
33===============================
34DIR/*.test
35===============================
36
37A sequence of key-value pairs that identify the inputs to certificate
38verification, as well as the expected outputs. The format is essentially a
39newline separated sequence of key/value pairs:
40
41key: value\n
42
43All keys must be specified by tests, although they can be in any order.
44The possible keys are:
45
46  "chain" - The value is a file path (relative to the test file) to a .pem
47      containing the CERTIFICATE chain.
48
49  "last_cert_trust" - The value identifies the trustedness of the last
50      certificate in the chain (i.e. whether it is a trust anchor or not). This
51      maps to the CertificateTrustType enum. Possible values are:
52          "TRUSTED_ANCHOR"
53          "TRUSTED_ANCHOR_WITH_EXPIRATION"
54          "TRUSTED_ANCHOR_WITH_CONSTRAINTS"
55          "UNSPECIFIED"
56          "DISTRUSTED"
57
58  "utc_time" - A string encoding for the generalized time at which verification
59      should be done. Example "150302120000Z"
60
61  "key_purpose" - The expected EKU to use when verifying. Maps to
62      KeyPurpose enum. Possible values are:
63      "ANY_EKU"
64      "SERVER_AUTH"
65      "CLIENT_AUTH"
66
67  "errors" - This has special parsing rules: it is interpreted as the
68      final key in the file. All lines after "errors:\n" are read as being the
69      error string (this allows embedding newlines in it).
70
71Additionally, it is possible to add python-style comments by starting a line
72with "#".
73
74===============================
75pkits_errors/*.txt
76===============================
77
78These files contain the expected errors for PKITS tests
79(third_party/nist-pkits). The file name correspond so the PKITS tests number.
80They are baselined specifically for VerifyCertificateChain().
81
82===============================
83generate-all.sh
84===============================
85
86Runs all of the generate-chains.py scripts and cleans up the temp files
87afterwards.
88