Bug 871670 - Current PEM support in NSS does not understand CRL in the PEM file
Current PEM support in NSS does not understand CRL in the PEM file
Product: Fedora
Classification: Fedora
Component: nss-pem (Show other bugs)
x86_64 Linux
unspecified Severity medium
: ---
: ---
Assigned To: Kamil Dudka
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2012-10-30 22:44 EDT by Bojan Smojver
Modified: 2016-09-29 05:05 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2016-09-29 05:05:59 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Bojan Smojver 2012-10-30 22:44:08 EDT
Description of problem:
Have a root CA configured in slapd.conf with TLSCACertificateFile (in PEM format). This worked fine when OpenSSL was used.

However, since PEM support under NSS was linked with OpenLDAP, if the CA file contains a CRL (which Dovocot likes), the file will not be understood and the SSL handshake on port 636 will fail like this:
139777063356256:error:140790E5:SSL routines:SSL23_WRITE:ssl handshake failure:s23_lib.c:177:
no peer certificate available
No client certificate CA names sent
SSL handshake has read 0 bytes and written 137 bytes
New, (NONE), Cipher is (NONE)
Secure Renegotiation IS NOT supported
Compression: NONE
Expansion: NONE

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Have a CA PEM file configured for OpenLDAP that includes CRL.
2. Start slapd, connect using openssl s_client.
3. Fails to serve a certificate, because the CA file was not understood by /lib64/libnsspem.so.
Actual results:
Fails to read the PEM file that has CRL included.

Expected results:
Should work, if this is a replacement for OpenSSL.

Additional info:
Workaround: create a PEM file with the CA, but without the CRL. Point to it from TLSCACertificateFile.
Comment 1 Kamil Dudka 2012-10-31 03:54:09 EDT
libcurl uses its own code for loading CRL certificates, but they need to be specified separately:

Comment 2 Fedora End Of Life 2013-07-03 18:20:20 EDT
This message is a reminder that Fedora 17 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 17. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '17'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 17's end of life.

Bug Reporter:  Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 17 is end of life. If you 
would still like  to see this bug fixed and are able to reproduce it 
against a later version  of Fedora, you are encouraged  change the 
'version' to a later Fedora version prior to Fedora 17's end of life.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.
Comment 3 Jan Kurik 2015-07-15 10:57:36 EDT
This bug appears to have been reported against 'rawhide' during the Fedora 23 development cycle.
Changing version to '23'.

(As we did not run this process for some time, it could affect also pre-Fedora 23 development
cycle bugs. We are very sorry. It will help us with cleanup during Fedora 23 End Of Life. Thank you.)

More information and reason for this action is here:
Comment 4 Fedora Admin XMLRPC Client 2016-08-15 11:53:09 EDT
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.
Comment 5 Kamil Dudka 2016-09-29 05:05:59 EDT
There is no plan to support CRLs by nss-pem because CRLs can be loaded by nss directly.

Note You need to log in before you can comment on or make changes to this bug.