From 32f681c6e5bf14ecf6138edee3f24748f69cd152 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Wed, 22 Nov 2017 22:34:56 +0100 Subject: [PATCH] Initialize keytsoreType with KeyStore.getDefaultType() --- .../java/org/jivesoftware/smack/ConnectionConfiguration.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/smack-core/src/main/java/org/jivesoftware/smack/ConnectionConfiguration.java b/smack-core/src/main/java/org/jivesoftware/smack/ConnectionConfiguration.java index 4585595e4..4b8cba52f 100644 --- a/smack-core/src/main/java/org/jivesoftware/smack/ConnectionConfiguration.java +++ b/smack-core/src/main/java/org/jivesoftware/smack/ConnectionConfiguration.java @@ -18,6 +18,7 @@ package org.jivesoftware.smack; import java.net.InetAddress; +import java.security.KeyStore; import java.util.Arrays; import java.util.Collection; import java.util.Collections; @@ -505,7 +506,7 @@ public abstract class ConnectionConfiguration { private SecurityMode securityMode = SecurityMode.ifpossible; private DnssecMode dnssecMode = DnssecMode.disabled; private String keystorePath = System.getProperty("javax.net.ssl.keyStore"); - private String keystoreType = "jks"; + private String keystoreType = KeyStore.getDefaultType(); private String pkcs11Library = "pkcs11.config"; private SSLContext customSSLContext; private String[] enabledSSLProtocols;