We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07f697c commit 78f9d2dCopy full SHA for 78f9d2d
key-pair-loader/src/main/java/com/onixbyte/security/KeyLoader.java
@@ -69,8 +69,8 @@ public interface KeyLoader {
69
default String getRawContent(String pemKeyText) {
70
// remove all unnecessary parts of the pem key text
71
return pemKeyText
72
- .replaceAll("-----BEGIN (EC )?(PRIVATE|PUBLIC) KEY-----", "")
73
- .replaceAll("-----END (EC )?(PRIVATE|PUBLIC) KEY-----", "")
+ .replaceAll("-----BEGIN ((EC )|(RSA ))?(PRIVATE|PUBLIC) KEY-----", "")
+ .replaceAll("-----END ((EC )|(RSA ))?(PRIVATE|PUBLIC) KEY-----", "")
74
.replaceAll("\n", "");
75
}
76
0 commit comments