Class TrustStores
java.lang.Object
com.netflix.spinnaker.kork.crypto.TrustStores
Provides utility methods related to trust stores. Trust stores are used to validate certificate
chains in TLS and other X.509 use cases.
-
Method Summary
Modifier and TypeMethodDescriptionstatic X509TrustManagerstatic KeyStorestatic X509TrustManagerloadTrustManager(KeyStore keyStore)
-
Method Details
-
loadPEM
public static KeyStore loadPEM(Path caCertificates) throws CertificateException, IOException, NoSuchAlgorithmException, KeyStoreException -
loadTrustManager
- Throws:
KeyStoreException
-
getSystemTrustManager
-