CentOS里使用curl命令忽略不受信任的https安全限制“curl performs SSL certificate verification by default, using a "bundle"”
[重要通告]如您遇疑難雜癥,本站支持知識付費業務,掃右邊二維碼加博主微信,可節省您寶貴時間哦!
前兩天給客戶CentOS里部署寶塔控制面板,部署完寶塔,用了一個CURL命令來打開一些頁面,可咋都是出現錯誤的,這就很尷尬了~~錯誤如下;
bcurl: (60) Issuer certificate is invalid.
More details here: http://curl.haxx.se/docs/sslcerts.htmlcurl performs SSL certificate verification by default, using a "bundle"
of Certificate Authority (CA) public keys (CA certs). If the default
bundle file isn't adequate, you can specify an alternate file
using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
the bundle, the certificate verification probably failed due to a
problem with the certificate (it might be expired, or the name might
not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
the -k (or --insecure) option.
CentOS里使用curl命令忽略不受信任的https安全限制
其實出現這個錯誤,無非就是關鍵字SSL,證書問題引起的錯誤,關鍵也有證書,可能跟證書某些參數有關系,不在深究,就看關鍵詞;
一長串英文里的關鍵詞:
use the -k
如“curl -X POST 直接變成curl -k -X POST ”即可,就是再CURL里加入-K完活!就是忽略了!
問題未解決?付費解決問題加Q或微信 2589053300 (即Q號又微信號)右上方掃一掃可加博主微信
所寫所說,是心之所感,思之所悟,行之所得;文當無敷衍,落筆求簡潔。 以所舍,求所獲;有所依,方所成!