diff --git a/auth/client/src/main/java/org/wildfly/security/auth/client/ElytronXmlParser.java b/auth/client/src/main/java/org/wildfly/security/auth/client/ElytronXmlParser.java index 967df3725b..46ecf0258c 100644 --- a/auth/client/src/main/java/org/wildfly/security/auth/client/ElytronXmlParser.java +++ b/auth/client/src/main/java/org/wildfly/security/auth/client/ElytronXmlParser.java @@ -3652,6 +3652,11 @@ public KeyStore get() throws ConfigXMLParseException { try (InputStream fis = createStream()) { keyStore.load(fis, passwordFactory == null ? null : passwordFactory.get()); } + //warnings as keystore.load("",pass) won't fail + if (passwordFactory == null || passwordFactory.get() == null) { + //check for empty password + xmlLog.warn("No Keystore password specified, it is recommended to specify a keystore password for security."); + } return keyStore; } catch (GeneralSecurityException | IOException e) { throw xmlLog.xmlFailedToLoadKeyStoreData(location, e);