Package org.graylog2.security.untrusted
Class UntrustedCertificateExtractor
java.lang.Object
org.graylog2.security.untrusted.UntrustedCertificateExtractor
This extractor will configure a
CertificateChainReportingTrustManager to augment the certificate exception
that we expect during the get request to the host. When the SSLHandshakeException happens, we'll use the exception
to access the original certificate chain that has been provided by the host. The chain is then returned for further
processing.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
UntrustedCertificateExtractor
public UntrustedCertificateExtractor(okhttp3.OkHttpClient okHttpClient)
-
-
Method Details
-
extractUntrustedCerts
public List<X509Certificate> extractUntrustedCerts(String host) throws NoSuchAlgorithmException, IOException, KeyManagementException
-