CentOS里使用curl命令忽略不受信任的https安全限制“curl performs SSL certificate verification by default, using a "bundle"”
[重要通告]如您遇疑難雜癥,本站支持知識(shí)付費(fèi)業(yè)務(wù),掃右邊二維碼加博主微信,可節(jié)省您寶貴時(shí)間哦!
前兩天給客戶CentOS里部署寶塔控制面板,部署完寶塔,用了一個(gè)CURL命令來(lái)打開(kāi)一些頁(yè)面,可咋都是出現(xiàn)錯(cuò)誤的,這就很尷尬了~~錯(cuò)誤如下;
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安全限制
其實(shí)出現(xiàn)這個(gè)錯(cuò)誤,無(wú)非就是關(guān)鍵字SSL,證書問(wèn)題引起的錯(cuò)誤,關(guān)鍵也有證書,可能跟證書某些參數(shù)有關(guān)系,不在深究,就看關(guān)鍵詞;
一長(zhǎng)串英文里的關(guān)鍵詞:
use the -k
如“curl -X POST 直接變成curl -k -X POST ”即可,就是再CURL里加入-K完活!就是忽略了!
問(wèn)題未解決?付費(fèi)解決問(wèn)題加Q或微信 2589053300 (即Q號(hào)又微信號(hào))右上方掃一掃可加博主微信
所寫所說(shuō),是心之所感,思之所悟,行之所得;文當(dāng)無(wú)敷衍,落筆求簡(jiǎn)潔。 以所舍,求所獲;有所依,方所成!