Postman 調試 HTTPS 接口時去掉證書驗證,報錯Error: Hostname/IP does not match certificate's altnames: IP: xx.xx.xx.xx is not in the cert's list:


如果機器對外有安全性要求,只能提供 HTTPS,同時還沒綁定域名,使用 Postman 進行接口調試時,通過 IP 去訪問機器上的服務是會報證書錯誤的:

GET https://<ip_of_my_server>:443/api/endpoint

Error: Hostname/IP does not match certificate's altnames: IP: <ip_of_my_server> is not in the cert's list:

 在接口的設置界面關閉 Enable SSL certificate verification 選項即可繞開該報錯。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM