|
@@ -83,8 +83,8 @@ public final class RsaKeyConverters {
|
|
|
return (source) -> {
|
|
|
List<String> lines = readAllLines(source);
|
|
|
Assert.isTrue(!lines.isEmpty() && lines.get(0).startsWith(PKCS8_PEM_HEADER),
|
|
|
- "Key is not in PEM-encoded PKCS#8 format, please check that the header begins with -----"
|
|
|
- + PKCS8_PEM_HEADER + "-----");
|
|
|
+ "Key is not in PEM-encoded PKCS#8 format, please check that the header begins with "
|
|
|
+ + PKCS8_PEM_HEADER);
|
|
|
StringBuilder base64Encoded = new StringBuilder();
|
|
|
for (String line : lines) {
|
|
|
if (RsaKeyConverters.isNotPkcs8Wrapper(line)) {
|