Class UntrustedCertificateExtractor

java.lang.Object
org.graylog2.security.untrusted.UntrustedCertificateExtractor

public class UntrustedCertificateExtractor extends Object
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.