diff --git a/tests/rsa-pkcs8/README.txt b/tests/rsa-pkcs8/README.txt new file mode 100644 index 00000000..5e1351a7 --- /dev/null +++ b/tests/rsa-pkcs8/README.txt @@ -0,0 +1,19 @@ +# pkcs8 without password +openssl pkcs8 -topk8 -inform PEM -outform DER -nocrypt -in ../test.key -out key_pkcs8.der + +# password protected - PBES1 +openssl pkcs8 -topk8 -inform PEM -outform DER -passout pass:secret -in ../test.key -v1 PBE-MD2-RC2-64 -out key_pkcs8_pbe_md2_rc2_64.der +openssl pkcs8 -topk8 -inform PEM -outform DER -passout pass:secret -in ../test.key -v1 PBE-MD2-DES -out key_pkcs8_pbe_md2_des.der +openssl pkcs8 -topk8 -inform PEM -outform DER -passout pass:secret -in ../test.key -v1 PBE-MD5-DES -out key_pkcs8_pbe_md5_des.der +openssl pkcs8 -topk8 -inform PEM -outform DER -passout pass:secret -in ../test.key -v1 PBE-SHA1-RC2-64 -out key_pkcs8_pbe_sha1_rc2_64.der +openssl pkcs8 -topk8 -inform PEM -outform DER -passout pass:secret -in ../test.key -v1 PBE-MD5-RC2-64 -out key_pkcs8_pbe_md5_rc2_64.der +openssl pkcs8 -topk8 -inform PEM -outform DER -passout pass:secret -in ../test.key -v1 PBE-SHA1-DES -out key_pkcs8_pbe_sha1_des.der + +# password protected - PBES2 +openssl pkcs8 -topk8 -inform PEM -outform DER -passout pass:secret -in ../test.key -v2 rc2 -out key_pkcs8_pbkdf2_rc2_cbc.der +openssl pkcs8 -topk8 -inform PEM -outform DER -passout pass:secret -in ../test.key -v2 des -out key_pkcs8_pbkdf2_des_cbc.der +openssl pkcs8 -topk8 -inform PEM -outform DER -passout pass:secret -in ../test.key -v2 des3 -out key_pkcs8_pbkdf2_des_ede3_cbc.der +openssl pkcs8 -topk8 -inform PEM -outform DER -passout pass:secret -in ../test.key -v2 des3 -v2prf hmacWithSHA224 -out key_pkcs8_pbkdf2_sha224_des_ede3_cbc.der +openssl pkcs8 -topk8 -inform PEM -outform DER -passout pass:secret -in ../test.key -v2 des3 -v2prf hmacWithSHA256 -out key_pkcs8_pbkdf2_sha256_des_ede3_cbc.der +openssl pkcs8 -topk8 -inform PEM -outform DER -passout pass:secret -in ../test.key -v2 des3 -v2prf hmacWithSHA384 -out key_pkcs8_pbkdf2_sha384_des_ede3_cbc.der +openssl pkcs8 -topk8 -inform PEM -outform DER -passout pass:secret -in ../test.key -v2 des3 -v2prf hmacWithSHA512 -out key_pkcs8_pbkdf2_sha512_des_ede3_cbc.der diff --git a/tests/rsa-pkcs8/key_pkcs8.der b/tests/rsa-pkcs8/key_pkcs8.der new file mode 100644 index 00000000..b8e02356 Binary files /dev/null and b/tests/rsa-pkcs8/key_pkcs8.der differ diff --git a/tests/rsa-pkcs8/key_pkcs8_pbe_md2_des.der b/tests/rsa-pkcs8/key_pkcs8_pbe_md2_des.der new file mode 100644 index 00000000..f4246011 Binary files /dev/null and b/tests/rsa-pkcs8/key_pkcs8_pbe_md2_des.der differ diff --git a/tests/rsa-pkcs8/key_pkcs8_pbe_md2_rc2_64.der b/tests/rsa-pkcs8/key_pkcs8_pbe_md2_rc2_64.der new file mode 100644 index 00000000..4471fa2f Binary files /dev/null and b/tests/rsa-pkcs8/key_pkcs8_pbe_md2_rc2_64.der differ diff --git a/tests/rsa-pkcs8/key_pkcs8_pbe_md5_des.der b/tests/rsa-pkcs8/key_pkcs8_pbe_md5_des.der new file mode 100644 index 00000000..ef70b424 Binary files /dev/null and b/tests/rsa-pkcs8/key_pkcs8_pbe_md5_des.der differ diff --git a/tests/rsa-pkcs8/key_pkcs8_pbe_md5_rc2_64.der b/tests/rsa-pkcs8/key_pkcs8_pbe_md5_rc2_64.der new file mode 100644 index 00000000..073f79eb Binary files /dev/null and b/tests/rsa-pkcs8/key_pkcs8_pbe_md5_rc2_64.der differ diff --git a/tests/rsa-pkcs8/key_pkcs8_pbe_sha1_des.der b/tests/rsa-pkcs8/key_pkcs8_pbe_sha1_des.der new file mode 100644 index 00000000..07c1e03e Binary files /dev/null and b/tests/rsa-pkcs8/key_pkcs8_pbe_sha1_des.der differ diff --git a/tests/rsa-pkcs8/key_pkcs8_pbe_sha1_rc2_64.der b/tests/rsa-pkcs8/key_pkcs8_pbe_sha1_rc2_64.der new file mode 100644 index 00000000..a644d3b4 Binary files /dev/null and b/tests/rsa-pkcs8/key_pkcs8_pbe_sha1_rc2_64.der differ diff --git a/tests/rsa-pkcs8/key_pkcs8_pbkdf2_des_cbc.der b/tests/rsa-pkcs8/key_pkcs8_pbkdf2_des_cbc.der new file mode 100644 index 00000000..f00879e4 Binary files /dev/null and b/tests/rsa-pkcs8/key_pkcs8_pbkdf2_des_cbc.der differ diff --git a/tests/rsa-pkcs8/key_pkcs8_pbkdf2_des_ede3_cbc.der b/tests/rsa-pkcs8/key_pkcs8_pbkdf2_des_ede3_cbc.der new file mode 100644 index 00000000..825e4bb6 Binary files /dev/null and b/tests/rsa-pkcs8/key_pkcs8_pbkdf2_des_ede3_cbc.der differ diff --git a/tests/rsa-pkcs8/key_pkcs8_pbkdf2_rc2_cbc.der b/tests/rsa-pkcs8/key_pkcs8_pbkdf2_rc2_cbc.der new file mode 100644 index 00000000..d71aa789 Binary files /dev/null and b/tests/rsa-pkcs8/key_pkcs8_pbkdf2_rc2_cbc.der differ diff --git a/tests/rsa-pkcs8/key_pkcs8_pbkdf2_sha224_des_ede3_cbc.der b/tests/rsa-pkcs8/key_pkcs8_pbkdf2_sha224_des_ede3_cbc.der new file mode 100644 index 00000000..a94765aa Binary files /dev/null and b/tests/rsa-pkcs8/key_pkcs8_pbkdf2_sha224_des_ede3_cbc.der differ diff --git a/tests/rsa-pkcs8/key_pkcs8_pbkdf2_sha256_des_ede3_cbc.der b/tests/rsa-pkcs8/key_pkcs8_pbkdf2_sha256_des_ede3_cbc.der new file mode 100644 index 00000000..7e4a159c Binary files /dev/null and b/tests/rsa-pkcs8/key_pkcs8_pbkdf2_sha256_des_ede3_cbc.der differ diff --git a/tests/rsa-pkcs8/key_pkcs8_pbkdf2_sha384_des_ede3_cbc.der b/tests/rsa-pkcs8/key_pkcs8_pbkdf2_sha384_des_ede3_cbc.der new file mode 100644 index 00000000..0ae0ea4c Binary files /dev/null and b/tests/rsa-pkcs8/key_pkcs8_pbkdf2_sha384_des_ede3_cbc.der differ diff --git a/tests/rsa-pkcs8/key_pkcs8_pbkdf2_sha512_des_ede3_cbc.der b/tests/rsa-pkcs8/key_pkcs8_pbkdf2_sha512_des_ede3_cbc.der new file mode 100644 index 00000000..d88b6bd4 Binary files /dev/null and b/tests/rsa-pkcs8/key_pkcs8_pbkdf2_sha512_des_ede3_cbc.der differ