public class CertificateUtils extends Object
Modifier and Type | Method and Description |
---|---|
static KeyStore |
createKeyStore(String keypem,
String certpem) |
static KeyStore |
createTrustStore(Reader certReader)
"ca.pem" from Reader
|
static KeyStore |
createTrustStore(String capem)
"ca.pem" from String
|
static boolean |
verifyCertificatesExist(String dockerCertPath) |
public static boolean verifyCertificatesExist(String dockerCertPath)
public static KeyStore createKeyStore(String keypem, String certpem) throws NoSuchAlgorithmException, InvalidKeySpecException, IOException, CertificateException, KeyStoreException
public static KeyStore createTrustStore(String capem) throws IOException, CertificateException, KeyStoreException, NoSuchAlgorithmException
public static KeyStore createTrustStore(Reader certReader) throws IOException, CertificateException, KeyStoreException, NoSuchAlgorithmException
Copyright © 2016. All Rights Reserved.