curl
curl 報錯:
curl: (51) Unable to communicate securely with peer: requested domain name does not match the server's certificate.
-
忽略方法
- 添加臨時 域名決議 快取的方式,保證對外域名可以直接決議到內網IP
# 手工指定域名DNS決議結果,比如把subdomain.example.com:443決議到10.0.0.100:443 curl -v --resolve subdomain.example.com:443:10.0.0.100 https://subdomain.example.com/- 直接關閉域名校驗 —insecure
# 禁止domain校驗 curl -v --insecure https://subdomain.example.com/
wget
增加引數:—no-check-certificate
wget 'https://subdomain.example.com/goods.json' --no-check-certificate
本文來自博客園,作者:Lin-Grocery,轉載請注明原文鏈接:https://www.cnblogs.com/moniter/p/hu-luehttps-yu-ming-xiao-yan-bu-tong-guo.html
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/477465.html
標籤:其他
上一篇:服務器初始化操作
下一篇:Red Hat Enterprise Linux 9 (RHEL 9) 正式版發布(含 x86_64 和 aarch64 鏡像下載)
