aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-02-20 12:34:56 +0300
committerGravatar Vitaly Takmazov2018-02-20 12:34:56 +0300
commit7b008a32def3c1202734b5e82f6887053071066a (patch)
treef84f52c20bcd2feb4daf9fa65c203766b835100d
parentc5d14e9ca835cda1a0cd5dfc85ad479c081f48c3 (diff)
server: PKCS12 xmpp keystore
-rw-r--r--juick-server/src/main/java/com/juick/server/XMPPServer.java2
1 files changed, 1 insertions, 1 deletions
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