原文:No subject alternative names matching IP address xxxxxx found

背景:RestTemplate.getForEntity方法 http请求 接口 日志里变成https ,报错 日志报错:I O error on GET request for https: xxxxxxxxxx : java.security.cert.CertificateException: No subject alternative names matching IP address ...

2021-10-19 16:57 0 2387 推荐指数:

查看详情

自签证书 doesn't match any of the subject alternative names

出现这个的原因是https中的域名或者IP,与证书中登记的不一致。 如果是自签证书的话,可以根据具体需要重新生成证书。 还有一种解决方案是在java中跳过这个检查。 绕过检查分两类,一个是绕过证书在CA备案的检查,一个是绕过url和证书中记录IP或域名的检查 未完待续。。。 ...

Thu Dec 27 00:03:00 CST 2018 0 1965
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM