Bug 1462312 - PKCS#12 export uses obsolete hash for PRF and low iteration counts
PKCS#12 export uses obsolete hash for PRF and low iteration counts
Status: NEW
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: nss (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: rc
: ---
Assigned To: nss-nspr-maint
BaseOS QE Security Team
Depends On:
Blocks: rhel7-nss-pkcs12
  Show dependency treegraph
Reported: 2017-06-16 13:27 EDT by Hubert Kario
Modified: 2017-09-18 14:02 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
Mozilla Foundation 1278071 None None None 2017-06-16 13:27 EDT
Mozilla Foundation 1373747 None None None 2017-06-16 13:32 EDT

  None (edit)
Description Hubert Kario 2017-06-16 13:27:17 EDT
Description of problem:
When PKCS#12 file is created using pk12util, it uses hmacWithSHA1 as the PRF for PBKDF2 and only 2000 iterations of that function.

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

How reproducible:

Steps to Reproduce:
export PKCS#12 file from NSS db using pk12util -o, inspect using openssl pkcs12 or openssl asn1parse

Actual results:
PBKDF2 always uses SHA1 and always uses 2000 iterations

Expected results:
default to SHA256 and higher number of iterations (a million or so, optimally dependent on the speed of CPU)

Additional info:

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