处理SSL certificate problem self signed certificate

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/i042416/article/details/88420951

当我本地的HTTPS服务器使用了一个自己生成的证书时,用curl访问这个服务器,遇到如下错误信息:

SSL certificate problem: self signed certificateMore details here: https://curl.haxx.se/docs/sslcerts.html
curl failed to verify the legitimacy of the server and therefore could notestablish a secure connection to it. To learn more about this situation andhow to fix it, please visit the web page mentioned above
image

这个网站提供了解决方案。最简单的一种:
image

使用–insecure忽略:
image

猜你喜欢

转载自blog.csdn.net/i042416/article/details/88420951