From 7b008a32def3c1202734b5e82f6887053071066a Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 20 Feb 2018 12:34:56 +0300 Subject: server: PKCS12 xmpp keystore --- juick-server/src/main/java/com/juick/server/XMPPServer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/juick-server/src/main/java/com/juick/server/XMPPServer.java b/juick-server/src/main/java/com/juick/server/XMPPServer.java index a75a7131..7562d265 100644 --- a/juick-server/src/main/java/com/juick/server/XMPPServer.java +++ b/juick-server/src/main/java/com/juick/server/XMPPServer.java @@ -107,7 +107,7 @@ public class XMPPServer implements ConnectionListener, AutoCloseable { @PostConstruct public void init() throws KeyStoreException { closeFlag.set(false); - KeyStore ks = KeyStore.getInstance("JKS"); + KeyStore ks = KeyStore.getInstance("PKCS12"); try (InputStream ksIs = new FileInputStream(keystore)) { ks.load(ksIs, keystorePassword.toCharArray()); KeyManagerFactory kmf = KeyManagerFactory.getInstance(KeyManagerFactory -- cgit v1.2.3