Skip to content

Commit e5a2683

Browse files
karel-msjaeckel
authored andcommitted
RSA - pkcs8 test keys
1 parent 2dd8bcd commit e5a2683

15 files changed

+19
-0
lines changed

tests/rsa-pkcs8/README.txt

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# pkcs8 without password
2+
openssl pkcs8 -topk8 -inform PEM -outform DER -nocrypt -in ../test.key -out key_pkcs8.der
3+
4+
# password protected - PBES1
5+
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
6+
openssl pkcs8 -topk8 -inform PEM -outform DER -passout pass:secret -in ../test.key -v1 PBE-MD2-DES -out key_pkcs8_pbe_md2_des.der
7+
openssl pkcs8 -topk8 -inform PEM -outform DER -passout pass:secret -in ../test.key -v1 PBE-MD5-DES -out key_pkcs8_pbe_md5_des.der
8+
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
9+
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
10+
openssl pkcs8 -topk8 -inform PEM -outform DER -passout pass:secret -in ../test.key -v1 PBE-SHA1-DES -out key_pkcs8_pbe_sha1_des.der
11+
12+
# password protected - PBES2
13+
openssl pkcs8 -topk8 -inform PEM -outform DER -passout pass:secret -in ../test.key -v2 rc2 -out key_pkcs8_pbkdf2_rc2_cbc.der
14+
openssl pkcs8 -topk8 -inform PEM -outform DER -passout pass:secret -in ../test.key -v2 des -out key_pkcs8_pbkdf2_des_cbc.der
15+
openssl pkcs8 -topk8 -inform PEM -outform DER -passout pass:secret -in ../test.key -v2 des3 -out key_pkcs8_pbkdf2_des_ede3_cbc.der
16+
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
17+
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
18+
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
19+
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

tests/rsa-pkcs8/key_pkcs8.der

636 Bytes
Binary file not shown.
677 Bytes
Binary file not shown.
677 Bytes
Binary file not shown.
677 Bytes
Binary file not shown.
677 Bytes
Binary file not shown.
677 Bytes
Binary file not shown.
677 Bytes
Binary file not shown.
711 Bytes
Binary file not shown.
714 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)