I'm on a Debian wheezy server and I'm trying to download stuff by https without success.
When I try to use
curl, it gives me this answer by example:
curl: (60) SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed More details here: http://curl.haxx.se/docs/sslcerts.html
wget gives me something similar:
ERROR: cannot verify www.domain.com’s certificate, issued by “/C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert SHA2 High Assurance Server CA”: Unable to locally verify the issuer’s authority.
When I perform the command
openssl s_client -showcerts -connect www.facebook.com:443 I receive the answer
verify error:num=20:unable to get local issuer certificate, but when I do
openssl s_client -CApath /etc/ssl/certs/ -showcerts -connect www.facebook.com:443 it works well.
So I think there's a environment var that is not set, because I can perform certificate checking when I set the path to public keys.
What I need to do in order to fix it?
Thanks in advance!