diff options
4 files changed, 88 insertions, 0 deletions
diff --git a/docs/development/test-vectors.rst b/docs/development/test-vectors.rst index 2edf1fbb..4c048abf 100644 --- a/docs/development/test-vectors.rst +++ b/docs/development/test-vectors.rst @@ -92,6 +92,14 @@ Custom X.509 Vectors generated using OpenSSL. * ``ec_no_named_curve.pem`` - Contains an ECDSA certificate that does not have an embedded OID defining the curve. +* ``all_supported_names.pem`` - An RSA 2048 bit certificate generated using + OpenSSL that contains a subject and issuer that have two of each supported + attribute type from :rfc:`5280`. +* ``unsupported_subject_name.pem`` - An RSA 2048 bit self-signed CA certificate + generated using OpenSSL that contains the unsupported "initials" name. +* ``utf8_common_name.pem`` - An RSA 2048 bit self-signed CA certificate + generated using OpenSSL that contains a UTF8String common name with the value + "We heart UTF8!™". Hashes ~~~~~~ diff --git a/vectors/cryptography_vectors/x509/custom/all_supported_names.pem b/vectors/cryptography_vectors/x509/custom/all_supported_names.pem new file mode 100644 index 00000000..1582bdaf --- /dev/null +++ b/vectors/cryptography_vectors/x509/custom/all_supported_names.pem @@ -0,0 +1,44 @@ +-----BEGIN CERTIFICATE----- +MIIHrTCCBpWgAwIBAgIBATANBgkqhkiG9w0BAQUFADCCAlcxCzAJBgNVBAYTAlVT +MQswCQYDVQQGEwJDQTEOMAwGA1UECAwFVGV4YXMxETAPBgNVBAgMCElsbGlub2lz +MRAwDgYDVQQHDAdDaGljYWdvMQ8wDQYDVQQHDAZBdXN0aW4xEjAQBgNVBAoMCVpl +cm8sIExMQzERMA8GA1UECgwIT25lLCBMTEMxFjAUBgNVBAMMDWNvbW1vbiBuYW1l +IDAxFjAUBgNVBAMMDWNvbW1vbiBuYW1lIDExDTALBgNVBAsMBE9VIDAxDTALBgNV +BAsMBE9VIDExFTATBgNVBC4TDGRuUXVhbGlmaWVyMDEVMBMGA1UELhMMZG5RdWFs +aWZpZXIxMQwwCgYDVQQFEwMxMjMxDDAKBgNVBAUTAzQ1NjEQMA4GA1UEDAwHVGl0 +bGUgMDEQMA4GA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tJfT +mh5C/mLgKfqfBSF8UeUUDQthinHKj3FzUdF1fOPWW40q82VIUOzHpDCmXGXUUgqc +YQ== +-----END CERTIFICATE----- diff --git a/vectors/cryptography_vectors/x509/custom/unsupported_subject_name.pem b/vectors/cryptography_vectors/x509/custom/unsupported_subject_name.pem new file mode 100644 index 00000000..1a55457c --- /dev/null +++ b/vectors/cryptography_vectors/x509/custom/unsupported_subject_name.pem @@ -0,0 +1,18 @@ +-----BEGIN CERTIFICATE----- +MIIC3DCCAcQCCQCEI+LAvF24yTANBgkqhkiG9w0BAQUFADAwMSEwHwYDVQQDDBhV +bnN1cHBvcnRlZCBzdWJqZWN0IGl0ZW0xCzAJBgNVBCsMAlBLMB4XDTE1MDExODAz +MTExMFoXDTE1MDIxNzAzMTExMFowMDEhMB8GA1UEAwwYVW5zdXBwb3J0ZWQgc3Vi +amVjdCBpdGVtMQswCQYDVQQrDAJQSzCCASIwDQYJKoZIhvcNAQEBBQADggEPADCC +AQoCggEBAKjvsV0jkw12z11HcnzmXxIGPWCh2IjxbHLxYJ6yEGobHthgNU5zxsUp +frtqWRN8WPOQVs1k8WPbWV3UUTLKnRQAEGbwRLm5X0qyqillemYAELal4hL0hO6C +AATOqzFEjbz/4/2Ce+saTHyi+sAJXwMbqf1WFbFzSjEzVjX0LibIm3cQl0rjU3Be +LEOK79V5HrlUNCF9md2wxDGciLEpsK6C640hDBDY2qw2SXoWDPHAosMd9X/Pytw4 +Xk+FwNrWpu1v4cQHcu8VbrcUIVJ8jQ7v/atgUo0pt/8xbVHT9FDnULTcB+Wa84BQ +cjiE5cTHuT9SG6QA4WTeBj8ckKB9t+kCAwEAATANBgkqhkiG9w0BAQUFAAOCAQEA +Iy/bQ5GzmokG2WlGGtqIwXKdH8rDNykhHHpR1zMmDOa4eeW6No9tS283pRT9qsNa +gvQV9VdHI+BDWSQ9w502o6HQhTwn1MfHtMyN2Zi7/gMORpdyZMACMGTzJqwydpL0 +QJY7NKqTpn2DVCreylK58l+g/YKoeXNhnQ7V0khr3N9O6agHe+6E1t3lSQx1prOI +Rlby4u5COChReSxuVEUsKzIFym4gz9J8ZGvgJlb12lX5ggVCtTuZWJBU3P8rjT90 +lqdvlr81APHt6PnG4ZZLfUREq/PbvoTt9S76J6hyfI6jViROT/immJk4dhaaS9lX +P8Y5dCsMu9ThmTSMbSDEWw== +-----END CERTIFICATE----- diff --git a/vectors/cryptography_vectors/x509/custom/utf8_common_name.pem b/vectors/cryptography_vectors/x509/custom/utf8_common_name.pem new file mode 100644 index 00000000..79ff32f6 --- /dev/null +++ b/vectors/cryptography_vectors/x509/custom/utf8_common_name.pem @@ -0,0 +1,18 @@ +-----BEGIN CERTIFICATE----- +MIICtDCCAZwCCQDfCSnalLBhujANBgkqhkiG9w0BAQUFADAcMRowGAYDVQQDDBFX +ZSBoZWFydCBVVEY4IeKEojAeFw0xNTAxMTgwMzUzNTRaFw0xNTAyMTcwMzUzNTRa +MBwxGjAYBgNVBAMMEVdlIGhlYXJ0IFVURjgh4oSiMIIBIjANBgkqhkiG9w0BAQEF +AAOCAQ8AMIIBCgKCAQEA4EbhGY1m2fmWoj09rCGMJMdDdoQG/cbij+Aq752pbOHB +4LsOXa7tZz01QnMYsGOqEIwK38fKxs7msmPQNFAD67Kyl77tII5EeDb02lEIfvfm +ervB1oTGRn/Cyen2XcFWCCr3Hu1sCYSLfzewVMs9yMh3eQ3r9FNqKFZKI4pRz8nZ +HO6+lylupuTOYcAxHfAdxy5k7c6xKJs7n01RHWiBiJMSJ3nUviCVXY+wQNbEHsSl +t2/8ex/UZj3IxCkEYZDtjBnfQUoDNaDmxataAd2kziu+cWW1rVPikSogOZWbXcfd +O03WFPAEk/u01lyDfTi9JrnnE7Pc1tBQSO6IhRmFLQIDAQABMA0GCSqGSIb3DQEB +BQUAA4IBAQARDZuelNiWdbMMYjuxPBM4EPNzxaVs/MX7ZmRu1EjcZ8J4B2nb5SAE +mAKkjM4zOfveEeEJnz/gJr2/Yq6Z60JkmHfy4iPPPNOt7zJ9IBkEcPxClgqGxHhF +iXqzJaK0/mPj1bzrQLlIoYCKjy1K4mlLOnBoXzGX9SjIC2EG7vFM+0SZay9Qkstb +bcKpKlcIDyJ594+TaX9juIIhmu/hAHzmlMqUv4tVxpMU4dGLywfAWsD87aFt1Snx +gq1J1hXURGPB81jLsKLcxqYhpWUjGy4lKjzBjRpdyiqoDLdzfe92u9Q/4dCIBBJS +3nrUqEZAwCj7O4JW4jXxZnSCxoBhYv4I +-----END CERTIFICATE----- + |