I am runnning a simple java httpsclient. It gives handshake_failure error when compiled and running with jdk1.5 . But works fine with jdk1.6 . I cannot upgrade my code to jdk 1.6. Is there anyway I can get this working with jdk 1.5
Maybe each JDK is using a different keystore, so one keystore contains a key allowing the connection, and the other does not.
See Received fatal alert: handshake_failure through SSLHandshakeException for details of how to enable SSL connection.
补充第一个答案,尝试使用Java keytool将证书添加到jdk1.5上的密钥库中
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.