Skip to content

Commit aee228c

Browse files
committed
update
1 parent 41352f1 commit aee228c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lambda-api/src/main/java/com/formkiq/stacks/api/handler/ConfigurationRequestHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ private boolean isValidRsaPrivateKey(final String privateKeyPem) {
301301
try {
302302
// Remove the PEM header and footer
303303
String privateKeyPemStripped = privateKeyPem.replace("-----BEGIN RSA PRIVATE KEY-----", "")
304-
.replace("-----END RSA PRIVATE KEY-----", "").replaceAll("\\s", "");
304+
.replace("-----END RSA PRIVATE KEY-----", "").replace("\\n", "").replaceAll("\\s+", "");
305305

306306
byte[] privateKeyBytes = Base64.getDecoder().decode(privateKeyPemStripped);
307307

0 commit comments

Comments
 (0)