Understanding that the question is quite old, and one answer has already been accepted, here is an alternative answer that worked fine for me and can be useful for people coming here from the search:
- Replace
libcurl-gnutls alternative to libcurl-openssl .
I noticed that the certificate error was generated only using programs using libcurl, and not with browsers, so I assumed that something about GNUTLS was to blame here, not the certificates.
Here is what worked for me (Ubuntu 12.04 LTS):
$ sudo apt-get remove libcurl4-gnutls-dev $ sudo apt-get install libcurl4-openssl-dev
All programs that relied on libcurl started working normally right after I replaced the libraries (I also recompiled the programs just in case).
Note. this solution will help you if you get a warning with GNUTLS, but not with, say, browsers. That is, I assume that the certificate chain is indeed configured correctly.
source share