private static SSLContextBuilder loadKeyMaterial(SSLContextBuilder builder, File file, char[] ksp,
            char[] kp, PrivateKeyStrategy privateKeyStrategy) throws NoSuchAlgorithmException,
                    KeyStoreException, UnrecoverableKeyException, CertificateException, IOException {
        Args.notNull(file, "Keystore file"); //$NON-NLS-1$
        final KeyStore identityStore = KeyStore.getInstance(KeyStore.getDefaultType());
        try (FileInputStream instream = new FileInputStream(file)) {
            identityStore.load(instream, ksp);
        }
        return builder.loadKeyMaterial(identityStore, kp, privateKeyStrategy);
    }
Allows any hostname.

@author Marc Savy <msavy@redhat.com>
gateway/platforms/servlet/src/main/java/io/apiman/gateway/platforms/servlet/connectors/ssl/SSLSessionStrategyFactory.java