Index: b/keyserver/gpgkeys_curl.c =================================================================== --- b/keyserver/gpgkeys_curl.c +++ b/keyserver/gpgkeys_curl.c @@ -304,7 +304,11 @@ } curl_easy_setopt(curl,CURLOPT_SSL_VERIFYPEER,(long)opt->flags.check_cert); - curl_easy_setopt(curl,CURLOPT_CAINFO,opt->ca_cert_file); + + if(opt->ca_cert_info) + { + curl_easy_setopt(curl,CURLOPT_CAINFO,opt->ca_cert_file); + } /* Avoid caches to get the most recent copy of the key. This is bug #1061. In pre-curl versions of the code, we didn't do it. Then