client_java icon indicating copy to clipboard operation
client_java copied to clipboard

Accessing HTTPS pushgateway URL

Open sumitbaurai opened this issue 4 years ago • 1 comments

Hi,

I am trying to access an https prometheus gateway url with basic auth. ( something like : https://<host>:<port>/teamA ) The basic auth credentials can very well be supplied using the BasicAuthConnectionFactory. this.pushGateway.setConnectionFactory(new BasicAuthHttpConnectionFactory("user","pwd"));

However, I don't find any available method or parameter to specify the location of my truststore/keystore. Hence, the request fails with SSL Handshake exception.

Any help or pointers highly appreciated.

--Regards Sumit

sumitbaurai avatar Jul 23 '21 16:07 sumitbaurai

Hi, For now, I have added the ca certs to the jvm cacerts store. Could this qualify as a feature request to be able to set the truststore via the API itself.

sumitbaurai avatar Jul 26 '21 11:07 sumitbaurai