curl certificate error

Hi,

I am getting below error when I do

-------------------------------
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: cURL - Details on Server SSL Certificates
If this HTTPS server uses a certificate signed by a CA represented in
the bundle, the certificate verification probably failed due to a
problem with the certificate (it might be expired, or the name might
not match the domain name in the URL).
-------------------------------

I have checked the "www.maxmind.com" certificate in the mozilla browser, it shows valid one. Why i am getting error when I try to run curl in the command prompt.

Error started to happen from today only, earlier it worked fine.

I just tried it on my box and it works. Maybe your version of curl is outdated.

$ curl -V
curl 7.19.5 (x86_64-pc-linux-gnu) libcurl/7.19.5 OpenSSL/0.9.8g zlib/1.2.3.3 libidn/1.15
Protocols: tftp ftp telnet dict ldap ldaps http file https ftps 
Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz 

It is probably your own certificates that are out of date. Have you checked your CA cert bundle?

How to know the CA cert bundle?. Also, I can connect to other website using https. But having problem only with the "curl https://www.maxmind.com/app/account"

Ok, if I use --insecure option in curl, will the data transfer in unencryted format?.

man curl

Also see cURL - Details on Server SSL Certificates