Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1194349 - test_pkcs12.py does not works in FIPS mode
test_pkcs12.py does not works in FIPS mode
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: python-nss (Show other bugs)
7.1
Unspecified Unspecified
low Severity low
: rc
: ---
Assigned To: John Dennis
Stanislav Zidek
: Patch
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-02-19 10:47 EST by Patrik Kis
Modified: 2015-11-19 06:34 EST (History)
2 users (show)

See Also:
Fixed In Version: python-nss-0.16.0-3.el7
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-11-19 06:34:49 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Proposed patch (1.85 KB, patch)
2015-02-19 10:47 EST, Patrik Kis
no flags Details | Diff


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:2357 normal SHIPPED_LIVE python-nss bug fix update 2015-11-19 05:27:32 EST

  None (edit)
Description Patrik Kis 2015-02-19 10:47:13 EST
Created attachment 993685 [details]
Proposed patch

Description of problem:
Two test scripts provided by python-nss-doc are not working on FIPS mode:
setup_certs.py
test_pkcs12.py
These are only a kind of examples but it would be nice to have versions which are working also in FIPS. Please note, they are executed during testing.

Version-Release number of selected component (if applicable):
python-nss-doc-0.16.0-2.el7

How reproducible:
always

Steps to Reproduce:

The 1st problem is that setup_certs.py can not create certificates with command:
# /usr/bin/certutil -S -x -d 'sql:pki' -f pwd -n test_ca -s 'CN=Test CA' -g 1024 -t 'CT,,CT' -1 -2 -5 -m 1 -v 12 
certutil: unable to generate key(s)
: SEC_ERROR_IO: An I/O error occurred during security authorization.

The problem is the weak password used here: db_passwd = 'db_passwd'

The 2nd problem is with test_export() in test_pkcs12.py. In FIPS salt is used and it appears in exported files. This cause that the comparison fails. I could not find better way that remove the salt from the string which are compared.
Comment 2 John Dennis 2015-06-12 18:06:26 EDT
Thank you for reporting and the good analysis.

fixed in upstream commit 103:6096d0660e2a
Comment 7 errata-xmlrpc 2015-11-19 06:34:49 EST
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://rhn.redhat.com/errata/RHBA-2015-2357.html

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