如果機器對外有安全性要求,只能提供 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
選項即可繞開該報錯。