api - How do I deal with certificates using cURL while trying to access an HTTPS url? -


i getting following error using curl:

 curl: (77) error setting certificate verify locations:   cafile: /etc/ssl/certs/ca-certificates.crt   capath: none 

how set certificate verify locations? thanks.

this error related missing package: ca-certificates. install it.

in ubuntu linux (and similar distro):

# apt-get install ca-certificates 

in cygwin via apt-cyg

# apt-cyg install ca-certificates 

in arch linux (raspberry pi)

# pacman -s ca-certificates 

the documentation tells:

this package includes pem files of ca certificates allow ssl-based applications check authenticity of ssl connections.

as seen at: debian -- details of package ca-certificates in squeeze


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -