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
Exceptionpublic 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 storeIOExceptionCertificateExceptionKeyStoreExceptionNoSuchAlgorithmExceptionCopyright © 2019. All rights reserved.