public class KeystoreUtil extends Object
Constructor and Description |
---|
KeystoreUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
createKeystore(String tlsKey,
String tlsCert,
String caCertFile,
String keystoreFile,
String password) |
static void |
updateWithCaPem(KeyStore pTrustStore,
File pCaCert)
Update a keystore with a CA certificate
|
public static void createKeystore(String tlsKey, String tlsCert, String caCertFile, String keystoreFile, String password) throws Exception
Exception
public static void updateWithCaPem(KeyStore pTrustStore, File pCaCert) throws IOException, CertificateException, KeyStoreException, NoSuchAlgorithmException
pTrustStore
- the keystore to updatepCaCert
- CA cert as PEM used for the trust storeIOException
CertificateException
KeyStoreException
NoSuchAlgorithmException
Copyright © 2020. All rights reserved.