简体   繁体   English

每当我使用 curl 并收到错误 60(SSL 证书问题)时,它还会向我显示一大堆文本。 如何隐藏它?

[英]Whenever I use curl and get error 60 (SSL certificate problem) it also shows me big wall of text. How to hide it?

Whenever I use curl and get error 60 (SSL certificate problem) it also shows me big wall of text:每当我使用 curl 并收到错误 60(SSL 证书问题)时,它还会向我显示大文本墙:

curl performs SSL certificate verification by default, using a "bundle" of Certificate Authority (CA) public keys (CA certs). curl 默认使用证书颁发机构 (CA) 公钥 (CA 证书) 的“捆绑”执行 SSL 证书验证。 If the default bundle file isn't adequate, you can specify an alternate file using the --cacert option.如果默认包文件不够用,您可以使用 --cacert 选项指定备用文件。

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).如果此 HTTPS 服务器使用由捆绑中表示的 CA 签名的证书,则证书验证可能会因证书问题而失败(它可能已过期,或者名称可能与 URL 中的域名不匹配)。

If you'd like to turn off curl's verification of the certificate, use the -k (or --insecure) option.如果您想关闭 curl 对证书的验证,请使用 -k(或 --insecure)选项。

How can i hide only this wall of text?我怎样才能隐藏这面文字墙?

If you want to suppress this warning, use the suggested options:如果要取消此警告,请使用建议的选项:

-k (or --insecure) -k(或 --insecure)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Nginx: curl: (60) SSL 证书问题:无法获得本地颁发者证书 - Nginx: curl: (60) SSL certificate problem: unable to get local issuer certificate curl:(60) SSL 证书问题:无法获取本地颁发者证书,了解更多详情:https://curl.haxx.se/docs/sslcerts.html - curl: (60) SSL certificate problem: unable to get local issuer certificate for More details here: https://curl.haxx.se/docs/sslcerts.html cURL 的 SSL 证书问题 - sslcerts - SSL certificate problem with cURL - sslcerts 问题 curl: (35) error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version - Problem curl: (35) error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version 我如何让 cURL 使用 https - How do i get cURL to use https ssl.c:510: 错误:14090086:SSL 例程:SSL3_GET_SERVER_CERTIFICATE: 证书验证失败 - ssl.c:510: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed 怎么修<urlopen error ……. unable to get local issuer certificate (_ssl.c:997)>在 Ubuntu?</urlopen> - How to fix <urlopen error ……. unable to get local issuer certificate (_ssl.c:997)> in Ubuntu? 卷曲错误“没有替代证书。” - Curl error “no alternative certificate..” Apache 2.4中的SSL证书错误 - SSL Certificate error in Apache 2.4 linux - 每当我尝试使用 gbdk 时,它都会返回一个致命错误 - linux - gbdk returns a fatal error whenever I try to use it
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM