【发布时间】:2018-08-07 07:52:57
【问题描述】:
您好,我想为网站使用 API,但我的 curl 命令出错。
我想禁用 SSL 证书验证。
curl: (60) SSL certificate problem: self signed certificate in certificate chain
More details here: https://curl.haxx.se/docs/sslcerts.html
curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
【问题讨论】:
-
简单的谷歌搜索“curl disable ssl” --> --insecure
-
你应该展示你的代码。正如所写,这只是一个关于如何运行命令的问题。根据您的代码,社区可能会建议如何使用正确的 CA 进行连接,而不是完全禁用它。你的策略还有很多不足之处。另见The most dangerous code in the world: validating SSL certificates in non-browser software。
标签: ssl curl ssl-certificate