diff options
author | Vitaly Takmazov | 2018-09-05 22:49:46 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-09-05 22:49:46 +0300 |
commit | 51489a954463567f8dd50854826c03ce51c45cb3 (patch) | |
tree | f3c9c2d5dfd15c86b0fd72bca5ff76c96f811146 /juick-server/src/main/java/com | |
parent | 3ad367ca8a9a11c026938459f7b852f6391bd341 (diff) |
KeystoreManager: fix public key string serialization
Diffstat (limited to 'juick-server/src/main/java/com')
-rw-r--r-- | juick-server/src/main/java/com/juick/server/KeystoreManager.java | 2 |
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 { |