Hello,
I would like to connect to an influxdb server which is in the cloud with a https method.
If I replace the getConnection() method with this below
OkHttpClient.Builder okHttpClientBuilder = new OkHttpClient().newBuilder() //
.connectTimeout(CONNECT_TIMEOUT, TimeUnit.SECONDS) //
.readTimeout(READ_TIMEOUT, TimeUnit.SECONDS) //
.writeTimeout(WRITE_TIMEOUT, TimeUnit.SECONDS);
InfluxDB influxDB = InfluxDBFactory.connect( this.url, this.username,
this.password, okHttpClientBuilder);
I can get a http connection by giving the full url as config parameter, but i’m stuck when using https. I have the following error:
InfluxDB-Exception: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
any idea?