Package com.javiergs.cortex4j
Class CortexTlsConfig
java.lang.Object
com.javiergs.cortex4j.CortexTlsConfig
Creates a dedicated TLS context for a trusted PEM-encoded CA certificate.
Does not alter JVM-wide trust settings or disable hostname verification.
-
Method Summary
Modifier and TypeMethodDescriptionstatic SSLContextstatic SSLContextfromCaCertificate(Path pemFile)
-
Method Details
-
fromCaCertificate
public static SSLContext fromCaCertificate(Path pemFile) throws IOException, GeneralSecurityException - Throws:
IOExceptionGeneralSecurityException
-
fromCaCertificate
public static SSLContext fromCaCertificate(InputStream pem) throws IOException, GeneralSecurityException - Throws:
IOExceptionGeneralSecurityException
-