Red Hat Bugzilla – Bug 1375303
gnutls trusts a certificate whose CA is both explicitly trusted and blacklisted
Last modified: 2017-08-01 04:48:22 EDT
Description of problem: If I add my custom CA to both /etc/pki/ca-trust/source/anchors and /etc/pki/ca-trust/source/blacklist (and run update-ca-trust), certificates signed by this CA are trusted. Version-Release number of selected component (if applicable): gnutls-3.3.24-1.el7 How reproducible: always Steps to Reproduce: 1. generate a CA and a server cert signed by it 2. add the CA to both /etc/pki/ca-trust/source/anchors and /etc/pki/ca-trust/source/blacklist 3. update-ca-trust 4. verify server cert (certtool --verify <server.pem) Actual results: Chain verification output: Verified. The certificate is trusted. Expected results: Blacklist has priority, server cert is not trusted. Additional info: I did further investigation and it really seems that the issue is only in this corner case. Blacklisting CA that is included in system by default works as expected.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2017:2292