Class TransportUtils

java.lang.Object
co.elastic.clients.transport.TransportUtils

public class TransportUtils extends Object
  • Constructor Details

    • TransportUtils

      public TransportUtils()
  • Method Details

    • sslContextFromHttpCaCrt

      public static SSLContext sslContextFromHttpCaCrt(File file) throws IOException
      Creates an SSLContext from the self-signed http_ca.crt certificate created by Elasticsearch during its first start.
      Throws:
      IOException
      See Also:
    • sslContextFromHttpCaCrt

      public static SSLContext sslContextFromHttpCaCrt(InputStream in)
      Creates an SSLContext from the self-signed http_ca.crt certificate created by Elasticsearch during its first start.
      See Also:
    • sslContextFromCaFingerprint

      public static SSLContext sslContextFromCaFingerprint(String fingerPrint)
      Creates an SSLContext from the SHA-256 fingerprint of self-signed http_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: