Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Commit 94904be

Browse files
Updating the PEMCollectionTest to deal with the PKCS8 standardization
1 parent 62dd233 commit 94904be

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/test/java/com/venafi/vcert/sdk/certificate/PEMCollectionTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ void keyPasswordRSA() throws VCertException, IOException {
8989
PrivateKey privateKey = pemCollection.privateKey();
9090

9191
PEMCollection pemCollection2 = PEMCollection.fromStringPEMCollection(body, ChainOption.ChainOptionIgnore, privateKey,
92-
KEY_PASSWORD);
92+
KEY_PASSWORD, DataFormat.LEGACY);
9393
String pemPrivateKey = pemCollection2.pemPrivateKey();
9494
assertThat(pemPrivateKey).contains("BEGIN RSA PRIVATE KEY");
9595
assertThat(pemPrivateKey).contains("ENCRYPTED");
@@ -102,7 +102,7 @@ void keyPasswordECDSA() throws VCertException, IOException {
102102
PrivateKey privateKey = pemCollection.privateKey();
103103

104104
PEMCollection pemCollection2 = PEMCollection.fromStringPEMCollection(body, ChainOption.ChainOptionIgnore, privateKey,
105-
KEY_PASSWORD);
105+
KEY_PASSWORD, DataFormat.LEGACY);
106106
String pemPrivateKey = pemCollection2.pemPrivateKey();
107107
assertThat(pemPrivateKey).contains("BEGIN EC PRIVATE KEY");
108108
assertThat(pemPrivateKey).contains("ENCRYPTED");

0 commit comments

Comments
 (0)