原文: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