summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorFelix Fontein <felix@fontein.de>2021-10-06 06:44:38 +0200
committerGitHub <noreply@github.com>2021-10-06 12:44:38 +0800
commit667e7a5f4c034c594269f1bf801941f48ece7a49 (patch)
tree894b6d1bb6c31c1a93a311753041e3215c6ae08e /docs
parentf3243541aa9ae8e6ea0f459ef80d7c46e18baa4d (diff)
downloadcryptography-667e7a5f4c034c594269f1bf801941f48ece7a49.tar.gz
Add new PKCS12 test vectors (#6383)
* Add new PKCS12 test vectors for #6348. * Re-create test certs without DSA. * Forgot to adjust the docs.
Diffstat (limited to 'docs')
-rw-r--r--docs/development/test-vectors.rst102
1 files changed, 102 insertions, 0 deletions
diff --git a/docs/development/test-vectors.rst b/docs/development/test-vectors.rst
index 7dd8db083..7776c0436 100644
--- a/docs/development/test-vectors.rst
+++ b/docs/development/test-vectors.rst
@@ -629,6 +629,108 @@ Custom PKCS12 Test Vectors
* ``pkcs12/cert-aes256cbc-no-key.p12`` - A PKCS12 file containing a cert
(``x509/custom/ca/ca.pem``) encrypted via AES 256 CBC with the
password ``cryptography`` and no private key.
+* ``pkcs12/no-name-no-pwd.p12`` - A PKCS12 file containing a cert
+ (``x509/custom/ca/ca.pem``) and key (``x509/custom/ca/ca_key.pem``),
+ as well as two additional certificates (``x509/cryptography.io.pem``
+ and ``x509/letsencryptx3.pem``).
+* ``pkcs12/name-all-no-pwd.p12`` - A PKCS12 file containing a cert
+ (``x509/custom/ca/ca.pem``) and key (``x509/custom/ca/ca_key.pem``)
+ with friendly name ``name``, as well as two additional certificates
+ (``x509/cryptography.io.pem`` and ``x509/letsencryptx3.pem``)
+ with friendly names ``name2`` and ``name3``, respectively.
+* ``pkcs12/name-1-no-pwd.p12`` - A PKCS12 file containing a cert
+ (``x509/custom/ca/ca.pem``) and key (``x509/custom/ca/ca_key.pem``)
+ with friendly name ``name``, as well as two additional certificates
+ (``x509/cryptography.io.pem`` and ``x509/letsencryptx3.pem``).
+* ``pkcs12/name-2-3-no-pwd.p12`` - A PKCS12 file containing a cert
+ (``x509/custom/ca/ca.pem``) and key (``x509/custom/ca/ca_key.pem``),
+ as well as two additional certificates (``x509/cryptography.io.pem``
+ and ``x509/letsencryptx3.pem``) with friendly names ``name2`` and
+ ``name3``, respectively.
+* ``pkcs12/name-2-no-pwd.p12`` - A PKCS12 file containing a cert
+ (``x509/custom/ca/ca.pem``) and key (``x509/custom/ca/ca_key.pem``),
+ as well as two additional certificates (``x509/cryptography.io.pem``
+ and ``x509/letsencryptx3.pem``), the first having friendly name ``name2``.
+* ``pkcs12/name-3-no-pwd.p12`` - A PKCS12 file containing a cert
+ (``x509/custom/ca/ca.pem``) and key (``x509/custom/ca/ca_key.pem``),
+ as well as two additional certificates (``x509/cryptography.io.pem``
+ and ``x509/letsencryptx3.pem``), the latter having friendly name ``name3``.
+* ``pkcs12/name-unicode-no-pwd.p12`` - A PKCS12 file containing a cert
+ (``x509/custom/ca/ca.pem``) and key (``x509/custom/ca/ca_key.pem``)
+ with friendly name ``☺``, as well as two additional certificates
+ (``x509/cryptography.io.pem`` and ``x509/letsencryptx3.pem``)
+ with friendly names ``ä`` and ``ç``, respectively.
+* ``pkcs12/no-name-pwd.p12`` - A PKCS12 file containing a cert
+ (``x509/custom/ca/ca.pem``) and key (``x509/custom/ca/ca_key.pem``),
+ as well as two additional certificates (``x509/cryptography.io.pem``
+ and ``x509/letsencryptx3.pem``),
+ encrypted via AES 256 CBC with the password ``cryptography``.
+* ``pkcs12/name-all-pwd.p12`` - A PKCS12 file containing a cert
+ (``x509/custom/ca/ca.pem``) and key (``x509/custom/ca/ca_key.pem``)
+ with friendly name ``name``, as well as two additional certificates
+ (``x509/cryptography.io.pem`` and ``x509/letsencryptx3.pem``)
+ with friendly names ``name2`` and ``name3`` respectively,
+ encrypted via AES 256 CBC with the password ``cryptography``.
+* ``pkcs12/name-1-pwd.p12`` - A PKCS12 file containing a cert
+ (``x509/custom/ca/ca.pem``) and key (``x509/custom/ca/ca_key.pem``)
+ with friendly name ``name``, as well as two additional certificates
+ (``x509/cryptography.io.pem`` and ``x509/letsencryptx3.pem``),
+ encrypted via AES 256 CBC with the password ``cryptography``.
+* ``pkcs12/name-2-3-pwd.p12`` - A PKCS12 file containing a cert
+ (``x509/custom/ca/ca.pem``) and key (``x509/custom/ca/ca_key.pem``),
+ as well as two additional certificates (``x509/cryptography.io.pem``
+ and ``x509/letsencryptx3.pem``) with friendly names ``name2` and
+ ``name3`` respectively, encrypted via AES 256 CBC with the password
+ ``cryptography``.
+* ``pkcs12/name-2-pwd.p12`` - A PKCS12 file containing a cert
+ (``x509/custom/ca/ca.pem``) and key (``x509/custom/ca/ca_key.pem``),
+ as well as two additional certificates (``x509/cryptography.io.pem``
+ and ``x509/letsencryptx3.pem``), the first having friendly name ``name2``,
+ encrypted via AES 256 CBC with the password ``cryptography``.
+* ``pkcs12/name-3-pwd.p12`` - A PKCS12 file containing a cert
+ (``x509/custom/ca/ca.pem``) and key (``x509/custom/ca/ca_key.pem``),
+ as well as two additional certificates (``x509/cryptography.io.pem``
+ and ``x509/letsencryptx3.pem``), the latter having friendly name ``name2``,
+ encrypted via AES 256 CBC with the password ``cryptography``.
+* ``pkcs12/name-unicode-pwd.p12`` - A PKCS12 file containing a cert
+ (``x509/custom/ca/ca.pem``) and key (``x509/custom/ca/ca_key.pem``)
+ with friendly name ``☺``, as well as two additional certificates
+ (``x509/cryptography.io.pem`` and ``x509/letsencryptx3.pem``)
+ with friendly names ``ä`` and ``ç`` respectively, encrypted via
+ AES 256 CBC with the password ``cryptography``.
+* ``pkcs12/no-cert-no-name-no-pwd.p12`` - A PKCS12 file containing two certs
+ (``x509/cryptography.io.pem`` and ``x509/letsencryptx3.pem``).
+* ``pkcs12/no-cert-name-all-no-pwd.p12`` - A PKCS12 file containing two certs
+ (``x509/cryptography.io.pem`` and ``x509/letsencryptx3.pem``)
+ with friendly names ``name2`` and ``name3``, respectively.
+* ``pkcs12/no-cert-name-2-no-pwd.p12`` - A PKCS12 file containing two certs
+ (``x509/cryptography.io.pem`` and ``x509/letsencryptx3.pem``),
+ the first having friendly name ``name2``.
+* ``pkcs12/no-cert-name-3-no-pwd.p12`` - A PKCS12 file containing two certs
+ (``x509/cryptography.io.pem`` and ``x509/letsencryptx3.pem``),
+ the second having friendly name ``name3``.
+* ``pkcs12/no-cert-name-unicode-no-pwd.p12`` - A PKCS12 file containing two
+ certs (``x509/cryptography.io.pem`` and ``x509/letsencryptx3.pem``)
+ with friendly names ``☹`` and ``ï``, respectively.
+* ``pkcs12/no-cert-no-name-pwd.p12`` - A PKCS12 file containing two certs
+ (``x509/cryptography.io.pem`` and ``x509/letsencryptx3.pem``),
+ encrypted via AES 256 CBC with the password ``cryptography``.
+* ``pkcs12/no-cert-name-all-pwd.p12`` - A PKCS12 file containing two certs
+ (``x509/cryptography.io.pem`` and ``x509/letsencryptx3.pem``)
+ with friendly names ``name2`` and ``name3``, respectively,
+ encrypted via AES 256 CBC with the password ``cryptography``.
+* ``pkcs12/no-cert-name-2-pwd.p12`` - A PKCS12 file containing two certs
+ (``x509/cryptography.io.pem`` and ``x509/letsencryptx3.pem``),
+ the first with friendly name ``name2``, encrypted via AES 256 CBC with
+ the password ``cryptography``.
+* ``pkcs12/no-cert-name-3-pwd.p12`` - A PKCS12 file containing two certs
+ (``x509/cryptography.io.pem`` and ``x509/letsencryptx3.pem``),
+ the second with friendly name ``name3``, encrypted via AES 256 CBC with
+ the password ``cryptography``.
+* ``pkcs12/no-cert-name-unicode-pwd.p12`` - A PKCS12 file containing two
+ certs (``x509/cryptography.io.pem`` and ``x509/letsencryptx3.pem``)
+ with friendly names ``☹`` and ``ï``, respectively, encrypted via
+ AES 256 CBC with the password ``cryptography``.
Custom PKCS7 Test Vectors
~~~~~~~~~~~~~~~~~~~~~~~~~