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号又微信号)右上方扫一扫可加博主微信
所写所说,是心之所感,思之所悟,行之所得;文当无敷衍,落笔求简洁。 以所舍,求所获;有所依,方所成!