简体   繁体   中英

SSLHandshakeException when trying to connect to host

I am using the weblogicserver and I have enabled HTTPS connector.

I have a standalone Java program which connects to a site say, "xyz.com" and fetches me json over HTTPS. But when I try to run the same program on the server, it throws SSLHandshakeException .

Post the stacktrace...Have you added the certificate into weblogic trust store "cacerts"?

What are your java_options settings?If not set then try something similar to below

JAVA_OPTIONS="-Dweblogic.security.SSL.trustedCAKeyStore=/weblogic92/server/lib/c‌​acerts ${JAVA_OPTIONS}"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM