RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1494631 - PKCS#12 files with AES encrypted keys are malformed
Summary: PKCS#12 files with AES encrypted keys are malformed
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: nss
Version: 6.9
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Daiki Ueno
QA Contact: Stefan Dordevic
URL:
Whiteboard:
Depends On: 1485481 1491444
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-09-22 16:50 UTC by Alicja Kario
Modified: 2018-10-15 21:38 UTC (History)
6 users (show)

Fixed In Version: nss-3.36.0-4.el6
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-06-19 05:10:10 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Mozilla Foundation 1416265 0 -- RESOLVED pk11wrap: Recover backward compatibility of PBES2 AES with older NSS releases 2020-03-05 12:44:45 UTC
Red Hat Product Errata RHEA-2018:1865 0 None None None 2018-06-19 05:10:28 UTC

Description Alicja Kario 2017-09-22 16:50:16 UTC
Description of problem:
When '-c AES-128-CBC' is specified to pk12util, the created PKCS#12 file cannot be imported with OpenSSL.

Version-Release number of selected component (if applicable):
nss-3.28.4-3.el6_9.x86_64

How reproducible:
always

Steps to Reproduce:
1. create nssdb with a key and certificate pair
2. pk12util -o x2.p12 -n ca -w pwfile -k pwfile -d sql:nssdb/ -c 'AES-128-CBC'
3. openssl pkcs12 -in x0.p12 -passin file:pwfile -info -nodes -out /dev/null

Actual results:
MAC Iteration 2000
MAC verified OK
PKCS7 Data
Shrouded Keybag: Error outputting keys and certificates
139923165992776:error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag:tasn_dec.c:1343:
139923165992776:error:0D06C03A:asn1 encoding routines:ASN1_D2I_EX_PRIMITIVE:nested asn1 error:tasn_dec.c:857:
139923165992776:error:0D08303A:asn1 encoding routines:ASN1_TEMPLATE_NOEXP_D2I:nested asn1 error:tasn_dec.c:777:Field=salt, Type=PBEPARAM
139923165992776:error:060A407B:digital envelope routines:PKCS5_V2_PBKDF2_KEYIVGEN:unsupported keylength:p5_crpt2.c:273:
139923165992776:error:06074078:digital envelope routines:EVP_PBE_CipherInit:keygen failure:evp_pbe.c:205:
139923165992776:error:23077073:PKCS12 routines:PKCS12_pbe_crypt:pkcs12 algor cipherinit error:p12_decr.c:83:
139923165992776:error:2306A075:PKCS12 routines:PKCS12_item_decrypt_d2i:pkcs12 pbe crypt error:p12_decr.c:130:

Expected results:
File processed by OpenSSL, reports AES-128-CBC encryption for the key

Additional info:
The file is importable by the same version of NSS.

Comment 1 Alicja Kario 2017-09-25 14:39:50 UTC
Additional info:
Those files are also importable by nss-3.21.0-17.el7.x86_64 but not by nss-3.28.4-11.el7_4.x86_64

Comment 2 Alicja Kario 2017-09-25 14:46:18 UTC
Last additional info:
Files created by nss-3.12.7-2.el6.x86_64 are importable by nss-3.28.4-3.el6_9.x86_64

Comment 16 errata-xmlrpc 2018-06-19 05:10:10 UTC
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/RHEA-2018:1865


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