public static X509ExtendedKeyManager createDefaultX509KeyManager(PrivateKey privateKey, List<X509Certificate> certificateChain) {
        KeyStore keystore = KeyStoreBuilder.withType(KeyStoreType.PKCS12)
                .withKeyEntry("default", privateKey, certificateChain)
                .build();
        return createDefaultX509KeyManager(keystore, new char[0]);
    }
Utility methods for constructing {@link X509ExtendedKeyManager}.

@author bjorncs
security-utils/src/main/java/com/yahoo/security/KeyManagerUtils.java