curl即使-k /-insecure标志也检查证书

时间:2018-09-26 17:03:09

标签: curl

reactStringReplace()

(该网址与公司相关,因此我将其隐藏了一部分)

我也曾尝试在curlrc中添加“不安全”:

curl https://xuzhao06.b...corp.com
curl: (51) SSL: certificate subject name 'Self-Signed Certificate for ohs1 ' does not match target host name 'xuzhao06.b...corp.com'

curl -k https://xuzhao06.b...corp.com
curl: (51) SSL: certificate subject name 'Self-Signed Certificate for ohs1 ' does not match target host name 'xuzhao06.b...corp.com'

我该如何屈服以放弃任何证书验证?

卷曲版本:

cat ~/.curlrc 
insecure

详细输出:

curl -V
curl 7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.55.1 OpenSSL/1.0.2l zlib/1.2.8
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp 
Features: AsynchDNS IPv6 Largefile NTLM SSL libz 

编辑:问题不是建议的重复。另一个问题不使用-k标志。

0 个答案:

没有答案