Package co.elastic.clients.transport
Class TransportUtils
java.lang.Object
co.elastic.clients.transport.TransportUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic SSLContext
sslContextFromCaFingerprint
(String fingerPrint) Creates anSSLContext
from the SHA-256 fingerprint of self-signedhttp_ca.crt
certificate output by Elasticsearch at startup time.static SSLContext
sslContextFromHttpCaCrt
(File file) Creates anSSLContext
from the self-signedhttp_ca.crt
certificate created by Elasticsearch during its first start.static SSLContext
Creates anSSLContext
from the self-signedhttp_ca.crt
certificate created by Elasticsearch during its first start.
-
Constructor Details
-
TransportUtils
public TransportUtils()
-
-
Method Details
-
sslContextFromHttpCaCrt
Creates anSSLContext
from the self-signedhttp_ca.crt
certificate created by Elasticsearch during its first start.- Throws:
IOException
- See Also:
-
sslContextFromHttpCaCrt
Creates anSSLContext
from the self-signedhttp_ca.crt
certificate created by Elasticsearch during its first start.- See Also:
-
sslContextFromCaFingerprint
Creates anSSLContext
from the SHA-256 fingerprint of self-signedhttp_ca.crt
certificate 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:
-