#4464 https connection to koji does not work
Closed: Fixed Opened by vondruch.

= bug description =
I cannot open https://koji.fedoraproject.org in my browser anymore. Firefox 31 says that the connection is untrusted, but once I try to add manually the exception, the certificate cannot be retrieved and I can't review/confirm the exception. Similarly, curl is complaining:

{{{
$ curl https://koji.fedoraproject.org/
curl: (60) Peer's certificate issuer has been marked as not trusted by the user.
More details here: http://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle"
of Certificate Authority (CA) public keys (CA certs). If the default
bundle file isn't adequate, you can specify an alternate file
using the --cacert option.
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).
If you'd like to turn off curl's verification of the certificate, use
the -k (or --insecure) option.
}}}

I observe this issue on my F20 with all updates applied.

= bug analysis =

= fix recommendation =


I've seen this before with nss doing something weird.

If you do:

mv ~/.pki ~/.pki.sav

does it start working?

Does it work with a newly created user?

The .pki stuff does not help. But it works with new user. Strange ...

Solved! I found that I have to delete cert8.db from my profile. These two pages were helpful:

https://support.mozilla.org/cs/questions/970080 [[BR]]
https://support.mozilla.org/en-US/kb/connection-untrusted-error-message#w_the-certificate-is-not-trusted-because-the-issuer-certificate-is-unknown

Thanks for looking into this issue.

Metadata