Package co.elastic.clients.transport
Class TransportUtils
java.lang.Object
co.elastic.clients.transport.TransportUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SSLContextsslContextFromCaFingerprint(String fingerPrint) Creates anSSLContextfrom the SHA-256 fingerprint of self-signedhttp_ca.crtcertificate output by Elasticsearch at startup time.static SSLContextsslContextFromHttpCaCrt(File file) Creates anSSLContextfrom the self-signedhttp_ca.crtcertificate created by Elasticsearch during its first start.static SSLContextCreates anSSLContextfrom the self-signedhttp_ca.crtcertificate created by Elasticsearch during its first start.
-
Constructor Details
-
TransportUtils
public TransportUtils()
-
-
Method Details
-
sslContextFromHttpCaCrt
Creates anSSLContextfrom the self-signedhttp_ca.crtcertificate created by Elasticsearch during its first start.- Throws:
IOException- See Also:
-
sslContextFromHttpCaCrt
Creates anSSLContextfrom the self-signedhttp_ca.crtcertificate created by Elasticsearch during its first start.- See Also:
-
sslContextFromCaFingerprint
Creates anSSLContextfrom the SHA-256 fingerprint of self-signedhttp_ca.crtcertificate output by Elasticsearch at startup time.- Parameters:
fingerPrint- the SHA-256 fingerprint. Can be uppercase or lowercase, with or without colons separating bytes- See Also:
-