Rewrite test certificates using more modern algorithms

The test.p12 file use the RC2-CBC and 3DES-CBC algorithms, which
are quite dated and require the `-legacy` option in openssl to read
them.

```console
$ openssl pkcs12 -in test.p12 -info -noout -legacy -passin pass:test
MAC: sha1, Iteration 1
MAC length: 20, salt length: 8
PKCS7 Encrypted data: pbeWithSHA1And40BitRC2-CBC, Iteration 2048
Certificate bag
PKCS7 Data
Shrouded Keybag: pbeWithSHA1And3-KeyTripleDES-CBC, Iteration 2048
```

Rewrite the test.p12 file with a current openssl (via p12 -> pem -> p12
conversion) to use more modern algorithms which do not require legacy
mode. Rewrite test.pem with a new export of test.p12.

```console
$ openssl pkcs12 -in test.p12 -info -noout -passin pass:test
MAC: sha256, Iteration 2048
MAC length: 32, salt length: 8
PKCS7 Encrypted data: PBES2, PBKDF2, AES-256-CBC, Iteration 2048, PRF hmacWithSHA256
Certificate bag
PKCS7 Data
Shrouded Keybag: PBES2, PBKDF2, AES-256-CBC, Iteration 2048, PRF hmacWithSHA256
```
This commit is contained in:
Nicolas Benes 2022-12-11 21:21:55 +01:00 committed by Nathan Moinvaziri
parent a5f12aed00
commit 0273af4bde
2 changed files with 30 additions and 30 deletions

Binary file not shown.

View File

@ -1,8 +1,8 @@
Bag Attributes
friendlyName: Minizip
localKeyID: 58 47 0B C9 69 23 3A 00 CD 7E 00 94 80 25 34 19 43 A8 C9 6C
subject=/CN=Minizip/O=Minizip/OU=MZ/ST=AZ/C=US/L=Phoenix/emailAddress=nathan@nathanm.com
issuer=/CN=Minizip/O=Minizip/OU=MZ/ST=AZ/C=US/L=Phoenix/emailAddress=nathan@nathanm.com
subject=CN = Minizip, O = Minizip, OU = MZ, ST = AZ, C = US, L = Phoenix, emailAddress = nathan@nathanm.com
issuer=CN = Minizip, O = Minizip, OU = MZ, ST = AZ, C = US, L = Phoenix, emailAddress = nathan@nathanm.com
-----BEGIN CERTIFICATE-----
MIIDpzCCAo+gAwIBAgIBATANBgkqhkiG9w0BAQsFADCBgDEQMA4GA1UEAwwHTWlu
aXppcDEQMA4GA1UECgwHTWluaXppcDELMAkGA1UECwwCTVoxCzAJBgNVBAgMAkFa
@ -30,32 +30,32 @@ Bag Attributes
localKeyID: 58 47 0B C9 69 23 3A 00 CD 7E 00 94 80 25 34 19 43 A8 C9 6C
Key Attributes: <No Attributes>
-----BEGIN ENCRYPTED PRIVATE KEY-----
MIIFDjBABgkqhkiG9w0BBQ0wMzAbBgkqhkiG9w0BBQwwDgQIingOHkhKlgECAggA
MBQGCCqGSIb3DQMHBAh61f17heSelQSCBMimyG3FA8h7rYN9jhVWXSmzt8ep9SbB
Q0b7fBL5liTiT5kxpWYbALaKOZ9kwKha2ceeYx7J54n1O+ZguYIVqhprfpl3NpSG
RizuChi30/GRyqejhqdVmZfnGFqyxI9KQce0KXtVq/LPbhNP/YAsSgnt20n+lJ+Z
1rvSFJRsK90bN1Iawl+iqLA9iT//6xf/4BoKFJrnWUUwmqh9Vuak0a1mgalLrx9y
lvakOsKoVgylSKkAzCHZyo5riU5a2ORz7I2gQKYjxcs1hSywhHXsNdDJe3p/j4QC
7kL+20EqwfOUWMBSdPKm25H1Pkent+Zv9O9CzzTKWT/6XVYYCvdRCXy0pOcDcfkL
l2FU8Hi2x7CZ1Q2+36pVo2s/LK/J61vvSvdxDk3Q6Qp6KhwDIPc6knpcgjx6EKnB
5Dn9Jc12KXvkNdc0e6lx1KFX0p1RUYwLGPloywBgAghWsmNOOk6NT5r2fRD2YgUd
4MM823pcnGrK8l+diWO3JqR0P7ElKnxf7C3y8Ql+FNwaht8B7tyNUqgQpCdtmapi
9KOpFQ1iDY52nrwzJTp8muN9S5OPWwIs62kNkd9LpvKAHuWcBm8JR3xB9EmbLNI+
9gQ1OzNpk7rC8vYwr98fdQ2ERdO3p0kgsgjoUZlCoTx176bmZNPffdJlW9VyUNUp
Cv/763miAHDzeLmb/In6YQHLHBAgFr2A1rAcInQeud8Dh0mDnj01JTjvcn9hM+D7
mTMqme7OjScEf0t5JvipulMXyPuGmzJtVICiW6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