未識(shí)別的SSL消息,明文連接?例外我有一個(gè)Java編寫(xiě)的包可以與網(wǎng)絡(luò)上的https服務(wù)器對(duì)話(huà)。運(yùn)行編譯會(huì)出現(xiàn)以下異常: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)我認(rèn)為這是由于與客戶(hù)端計(jì)算機(jī)建立的連接不安全。是否有任何方法配置本地計(jì)算機(jī)或端口以連接到遠(yuǎn)程https服務(wù)器?
3 回答

HUX布斯
TA貢獻(xiàn)1876條經(jīng)驗(yàn) 獲得超6個(gè)贊
我認(rèn)為這是由于與客戶(hù)端計(jì)算機(jī)建立的連接不安全。

慕的地6264312
TA貢獻(xiàn)1817條經(jīng)驗(yàn) 獲得超6個(gè)贊
添加回答
舉報(bào)
0/150
提交
取消