Caused by: java.security.cert.CertificateException: No subject alternative names present
来源:互联网 发布:局域网共享端口 编辑:程序博客网 时间:2024/06/14 23:05
javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No subject alternative names presentat 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.getInputStream(Unknown Source)at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source)at com.fob.utils.HttpsUtil.httpsServer(HttpsUtil.java:89)at com.fob.utils.HttpsUtil.httpsPost(HttpsUtil.java:37)at com.fob.test.Test.httpsTest(Test.java:23)at com.fob.test.Test.main(Test.java:14)Caused by: java.security.cert.CertificateException: No subject alternative names presentat 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
使用HttpsURLConnection对象,链接本地。
错误原因,因为访问的是内网,改成外网即可,比如: https://www.baidu.com
0 0
- Caused by: java.security.cert.CertificateException: No subject alternative names present
- Linux下tomcat配置ssl中报错的问题[已解决] CertificateException No subject alternative names present
- Android 问题解决:Caused by: java.security.cert.CertificateException
- "No subject alternative names present" solved
- “No subject alternative names present” 异常解决
- Spring Boot忽略https证书:No subject alternative names present
- 【java细节】Java代码忽略https证书:No subject alternative names present
- Java.Security.Cert.CertificateException: No Name Matching Localhost Found
- java.security.cert.CertificateException: Issuer class type invalid or Subject class type in valid
- No subject alternative names那些事
- java.security.cert.CertificateException: No name matching cas.gogoyuan.cn found
- CAS部署错误3:java.security.cert.CertificateException: No name match
- java.security.cert.CertificateException: No name matching api.weibo.com found;取消验证
- java.security.cert.CertificateException: No name matching https证书验证不通过
- Caused by: java.security.cert.CertPathValidatorException: timestamp check failed
- 导入申请的证书时发生java.security.cert.CertificateException: java.io.EOFException异常
- package com.w3ang.learning.https; import java.security.cert.CertificateException; import java.secur
- java.security.cert.CertificateException: Certificates does not conform to algorithm constraints
- 浅谈WebLogic和Tomcat
- hibernate 父表子表设计
- unity-programming-c#-1-frist day
- test
- struts2和hibernate一起用时会报错
- Caused by: java.security.cert.CertificateException: No subject alternative names present
- apktool2.0.jar系列简单教程
- 骑行从脚下,健康你我他之第一篇-----杭城骑行路线参考图
- Java总结篇系列:Java泛型 - Windstep - 博客园
- Android进程优先级architecture : low memory killer (/system/core/lmkd/lmkd.c)
- hdu--2189(简单的母函数)
- 第三周上机实践项目 项目2--本月有几天?
- linux(centos)搭建SVN服务器
- FindWithTag用法