I'm trying to send a request to one of our server url,but whenever i try to connect I get this expection
java.net.ConnectException: Received fatal alert: handshake_failure
This the certificate details i got from the browser when visiting the website.
Common Name (CN) Go Daddy Secure Certificate Authority - G2
Organisation (O) GoDaddy.com, Inc.
Organisational Unit (OU) http://certs.godaddy.com/repository/
I checked for the same details in cacerts
in my java directory
keytool -list -keystore /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.101-3.b13.24.amzn1.x86_64/jre/lib/security/cacerts | grep godaddy
godaddyclass2ca, 23 Sep, 2016, trustedCertEntry,
godaddyrootcertificateauthority-g2, 23 Sep, 2016, trustedCertEntry,
This is the installed java version:
openjdk version "1.8.0_101"
OpenJDK Runtime Environment (build 1.8.0_101-b13)
OpenJDK 64-Bit Server VM (build 25.101-b13, mixed mode)
I even downloaded the certificate from the browser and imported it into cacerts
keytool -import -keystore cacerts -file test.cer
Please help me to debug it.