Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,8 @@ private static PrivateKey parsePrivateKey(byte[] keyBytes) throws Exception {
if (keyStr.contains("-----BEGIN RSA PRIVATE KEY-----")
|| keyStr.contains("-----BEGIN EC PRIVATE KEY-----")) {
throw new IllegalArgumentException(
"PKCS#1 private keys are not supported. Please convert your key to PKCS#8 format using: "
+ "openssl pkcs8 -topk8 -nocrypt -in <key> -out <key_pkcs8>");
"PKCS#1 private keys are not supported. Please convert your key to PKCS#8 format using:"
+ " openssl pkcs8 -topk8 -nocrypt -in <key> -out <key_pkcs8>");
}
if (keyStr.contains("-----BEGIN PRIVATE KEY-----")) {
der = extractPemContent(keyStr, "-----BEGIN PRIVATE KEY-----", "-----END PRIVATE KEY-----");
Expand Down
Loading
Loading