未识别的SSL消息,明文连接?例外我有一个Java编写的包可以与网络上的https服务器对话。运行编译会出现以下异常:javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
at com.sun.net.ssl.internal.ssl.InputRecord.handleUnknownRecord(Unknown Source)at
com.sun.net.ssl.internal.ssl.InputRecord.read(Unknown Source)at com.sun.net.ssl.internal.ssl.SSL
SocketImpl.readRecord(Unknown Source)at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)at com.sun.
net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown Source)at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown
Source)at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)at sun.net.www.protocol.https.AbstractDelegateHttpsURLCon
nection.connect(Unknown Source)at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(Unknown Source)我认为这是由于与客户端计算机建立的连接不安全。是否有任何方法配置本地计算机或端口以连接到远程https服务器?
3 回答
慕的地6264312
TA贡献1817条经验 获得超6个赞
添加回答
举报
0/150
提交
取消