getting ssl exception while using jetbrains/intellij-http-client docker image

Answered

I am tyring to use jetbrains/intellij-http-client  cli docker image in a coroprate setup where we have custom cacerts installed in JVM.

I am able to manually call the services across our environments using IDE provided htttp client.

but while trying to automate using docker image provided it is throwing following exception 

javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
 

can anyone suggest some solution

0
5 comments

Yes I tried that and Did not help. My understanding is jvm inside the docker image should use our custom caverns but how to configure that is the question.

0
There is a  `IJHTTP_JAVA_OPTS` variable for configuring extra jvm options like `-Djavax.net.ssl.trustStore=./key.store` .

Please refer to the related issue: https://youtrack.jetbrains.com/issue/IDEA-309012/How-to-pass-Java-properties-to-HTTP-Client-with-and-without-Docker-container
0

I was able to solve that using --insecure=true option of docker

0
Thank you for the information!
0

Please sign in to leave a comment.