From 60bb2e97a7b9a883d40b1b48c280bfd48dd283e2 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sun, 8 Jan 2023 07:03:49 +0300 Subject: Fix public keys on Windows --- src/main/java/com/juick/KeystoreManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/com/juick/KeystoreManager.java') diff --git a/src/main/java/com/juick/KeystoreManager.java b/src/main/java/com/juick/KeystoreManager.java index 952cb72c..da52411f 100644 --- a/src/main/java/com/juick/KeystoreManager.java +++ b/src/main/java/com/juick/KeystoreManager.java @@ -75,7 +75,7 @@ public class KeystoreManager { } public String getPublicKeyPem() { - return new String(Keys.of(getPublicKey()).encode(Key.Format.PEM)); + return new String(Keys.of(getPublicKey()).encode(Key.Format.PEM)).replace("\r\n", "\n"); } public static java.security.Key publicKeyOf(Actor person) { -- cgit v1.2.3