NutzCN Logo
问答 https调用报No subject alternative names
发布于 1850天前 作者 xinerivg 3647 次浏览 复制 上一个帖子 下一个帖子
标签:

调用https地址报错,jdk1.8,已经用了Http.disableJvmHttpsCheck(),返回是true,nutz版本是1.r.62,怎么才可以成功呀o(╥﹏╥)o
地址:https://183.194.243.116/clientgateway/

Exception in thread "main" org.nutz.http.HttpException: url=https://183.194.243.116/clientgateway/
	at org.nutz.http.sender.PostSender.send(PostSender.java:44)
	at com.wonders.TestDZZP.main(TestDZZP.java:77)
Caused by: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No subject alternative names matching IP address 183.194.243.116 found
	at sun.security.ssl.Alerts.getSSLException(Unknown Source)
	at sun.security.ssl.SSLSocketImpl.fatal(Unknown Source)
	at sun.security.ssl.Handshaker.fatalSE(Unknown Source)
	at sun.security.ssl.Handshaker.fatalSE(Unknown Source)
	at sun.security.ssl.ClientHandshaker.serverCertificate(Unknown Source)
	at sun.security.ssl.ClientHandshaker.processMessage(Unknown Source)
	at sun.security.ssl.Handshaker.processLoop(Unknown Source)
	at sun.security.ssl.Handshaker.process_record(Unknown Source)
	at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
	at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
	at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
	at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
	at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)
	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
	at sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(Unknown Source)
	at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)
	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(Unknown Source)
	at org.nutz.http.Sender.getOutputStream(Sender.java:296)
	at org.nutz.http.sender.PostSender.send(PostSender.java:35)
	... 1 more
Caused by: java.security.cert.CertificateException: No subject alternative names matching IP address 183.194.243.116 found
	at sun.security.util.HostnameChecker.matchIP(Unknown Source)
	at sun.security.util.HostnameChecker.match(Unknown Source)
	at sun.security.ssl.X509TrustManagerImpl.checkIdentity(Unknown Source)
	at sun.security.ssl.AbstractTrustManagerWrapper.checkAdditionalTrust(Unknown Source)
	at sun.security.ssl.AbstractTrustManagerWrapper.checkServerTrusted(Unknown Source)
	... 16 more
2 回复

ip走https,你是有多懒

服务器不支持域名调用,对接方是说调用这个地址的时候忽略https校验。。。但是试了一下报上面的错。。。还有啥别的解决方案吗

添加回复
请先登陆
回到顶部