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.
2 parents dd62720 + 78f9d2d commit be38668Copy full SHA for be38668
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