我正在尝试连接https URL,并使用Java代码从该URL读取/下载内容。最初,我面临的是未经授权的异常403,但后来我使用了proxy settings来克服这种情况。我已经解决了403个例外,但面对下面的例外。
Exception in thread "main" javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake请提供如何使用Java代码解决SSLHandShakeException的建议。
发布于 2017-06-15 05:12:49
试着添加
System.setProperty("https.protocols", "TLSv1,TLSv1.1,TLSv1.2");在具有下列参数的任何网络调用或运行服务器之前的源中
-Dhttps.protocols=TLSv1.1,TLSv1.2https://stackoverflow.com/questions/44534726
复制相似问题