我该如何处理使用卷曲,同时试图访问HTTPS URL证书吗? [英] How do I deal with certificates using cURL while trying to access an HTTPS url?
本文介绍了我该如何处理使用卷曲,同时试图访问HTTPS URL证书吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用curl以下错误:
I am getting the following error using curl:
curl: (77) error setting certificate verify locations:
CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: none
我如何设置此证书验证的位置吗?谢谢。
How do I set this certificate verify locations? Thanks.
推荐答案
此错误与一个的缺失的软件包的 CA证书
。安装。
This error is related to a missing package: ca-certificates
. Install it.
在Ubuntu Linux操作系统(以及类似的发行版):
In Ubuntu Linux (and similar distro):
# sudo apt-get install ca-certificates
# apt-cyg install ca-certificates
在Arch Linux的(树莓PI)
In Arch Linux (Raspberry Pi)
# pacman -S ca-certificates
该文档告诉:
The documentation tells:
该软件包包括CA证书的PEM文件,以允许基于SSL的应用程序来检查SSL连接的真实性。
This package includes PEM files of CA certificates to allow SSL-based applications to check for the authenticity of SSL connections.
由于见于: Debian的 - 在挤包CA证书的详细信息
这篇关于我该如何处理使用卷曲,同时试图访问HTTPS URL证书吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文