Skip to content

SQL: http | https option in JDBC connection string is ignored #33817

@n0othing

Description

@n0othing

Elasticsearch version (bin/elasticsearch --version):

Version: 6.4.0, Build: default/zip/595516e/2018-08-17T23:18:47.308994Z, JVM: 1.8.0_181

JVM version (java -version):

java version "1.8.0_181"
Java(TM) SE Runtime Environment (build 1.8.0_181-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode)

Description of the problem including expected versus actual behavior:

The http | https option in the JDBC connection string is ignored, and only ?sql=true can be used to enable SSL/TLS. Here are the results for connecting to a TLS protected ES cluster:

jdbc:es://https://localhost:9200 ---> fails
jdbc:es://https://localhost:9200?ssl=true ---> works
jdbc:es://http://localhost:9200?ssl=true ---> works
jdbc:es://localhost:9200?ssl=true  ---> works

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions