aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-09-05 22:49:46 +0300
committerGravatar Vitaly Takmazov2018-09-05 22:49:46 +0300
commit51489a954463567f8dd50854826c03ce51c45cb3 (patch)
treef3c9c2d5dfd15c86b0fd72bca5ff76c96f811146 /juick-server/src/main
parent3ad367ca8a9a11c026938459f7b852f6391bd341 (diff)
KeystoreManager: fix public key string serialization
Diffstat (limited to 'juick-server/src/main')
-rw-r--r--juick-server/src/main/java/com/juick/server/KeystoreManager.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/juick-server/src/main/java/com/juick/server/KeystoreManager.java b/juick-server/src/main/java/com/juick/server/KeystoreManager.java
index bb0de79d..4edc6664 100644
--- a/juick-server/src/main/java/com/juick/server/KeystoreManager.java
+++ b/juick-server/src/main/java/com/juick/server/KeystoreManager.java
@@ -77,7 +77,7 @@ public class KeystoreManager {
return null;
}
public String getPublicKey() {
- return String.format("-----BEGIN RSA PUBLIC KEY-----\n%s\\n-----END RSA PUBLIC KEY-----\\n",
+ return String.format("-----BEGIN RSA PUBLIC KEY-----\n%s\n-----END RSA PUBLIC KEY-----\n",
new String(Base64Utils.encode(getKeyPair().getPublic().getEncoded())));
}
private X509Certificate generateCertificate(String dn, KeyPair keyPair, int validity, String sigAlgName) throws GeneralSecurityException, IOException {