Bug 1221295
| Summary: | jss fails to decode EncryptedKey >> EnvelopedData | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Joshua Roys <roysjosh> | ||||
| Component: | jss | Assignee: | Christina Fu <cfu> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Asha Akkiangady <aakkiang> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 7.3 | CC: | arubin, cfu, mharmsen, rpattath | ||||
| Target Milestone: | rc | ||||||
| Target Release: | 7.3 | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | jss-4.2.6-41.el7 | Doc Type: | Bug Fix | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2016-11-04 05:38:15 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
|
Description
Joshua Roys
2015-05-13 15:54:36 UTC
Created attachment 1025119 [details]
fix EncryptedKey decode/encode
This patch allows an EncryptedKey containing EnvelopedData to make it through Dogtag and to the KRA.
Per CS/DS meeting of 06/08/2015: Moved this bug to target RHEL 7.3 Per discussions in the RHEL 7.3 Triage meeting of 01/06/2016: priority medium Patch looks good. This patch is actually the answer to the "need investigation in JSS" item I mentioned in: https://bugzilla.redhat.com/show_bug.cgi?id=233394#c10 I did a JSS hack back then without investing much time in there. I have tested the patch with the following: 1. the old Firefox which generates CRMF with the deprecated EncryptedValue (making sure it doesn't break) 2. use the CRMFOptClient tool (requires minor fix to work with newest src tree) I wrote back in https://bugzilla.redhat.com/show_bug.cgi?id=233394#c20 to generate CRMF request with new envelopedData both work. The KRA code added to support the new envelopedData in https://bugzilla.redhat.com/show_bug.cgi?id=233394 works without need for change. Should consider folding the new client code into CRMFPopClient and the cli. jss-4.2.6-41.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-113d8c06f5 jss-4.2.6-41.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-113d8c06f5 jss-4.2.6-41.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report. [root@auto-hv-02-guest02 ~]# rpm -qi pki-ca Name : pki-ca Version : 10.3.3 Release : 5.el7 Architecture: noarch Install Date: Sun 14 Aug 2016 05:08:03 PM EDT Group : System Environment/Daemons Size : 2430595 License : GPLv2 Signature : RSA/SHA256, Thu 11 Aug 2016 02:01:10 AM EDT, Key ID 938a80caf21541eb Source RPM : pki-core-10.3.3-5.el7.src.rpm Build Date : Tue 09 Aug 2016 07:47:56 AM EDT Build Host : ppc-021.build.eng.bos.redhat.com Relocations : (not relocatable) Packager : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla> Vendor : Red Hat, Inc. URL : http://pki.fedoraproject.org/ Summary : Certificate System - Certificate Authority [root@auto-hv-02-guest02 ~]# rpm -qi jss Name : jss Version : 4.2.6 Release : 42.el7 Architecture: x86_64 Install Date: Sun 14 Aug 2016 05:07:57 PM EDT Group : System Environment/Libraries Size : 986570 License : MPLv1.1 or GPLv2+ or LGPLv2+ Signature : RSA/SHA256, Wed 10 Aug 2016 06:59:28 AM EDT, Key ID 938a80caf21541eb Source RPM : jss-4.2.6-42.el7.src.rpm Build Date : Tue 09 Aug 2016 05:46:57 PM EDT Build Host : x86-020.build.eng.bos.redhat.com Relocations : (not relocatable) Packager : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla> Vendor : Red Hat, Inc. URL : http://www.mozilla.org/projects/security/pki/jss/ Summary : Java Security Services (JSS) Verification steps: 1. [root@auto-hv-02-guest02 ~]# CRMFPopClient -d certsdb -p redhat -o certsdb/encyption_cert_request.pem -n "CN=Foo User6,OU=Foo_Example_IT,O=FooBar.Org,ST=North Carolina,L=Raleigh,C=US" -a rsa -l 2048 -u FooUser6 -r FooUser6 -b /root/kra-transport.txt Storing CRMF requrest into certsdb/encyption_cert_request.pem [root@auto-hv-02-guest02 ~]# cat certsdb/encyption_cert_request.pem -----BEGIN NEW CERTIFICATE REQUEST----- MIII8zCCCO8wggfTAgEBMIIBp4ABAqV8MHoxCzAJBgNVBAYTAlVTMRAwDgYDVQQH EwdSYWxlaWdoMRcwFQYDVQQIEw5Ob3J0aCBDYXJvbGluYTETMBEGA1UEChMKRm9v QmFyLk9yZzEXMBUGA1UECxQORm9vX0V4YW1wbGVfSVQxEjAQBgNVBAMTCUZvbyBV c2VyNqaCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMickGPjzZHTO5CI mvYqXbZ0QOOS374+Puv+YH9q/fzUHz06icknyxxvLxRHwjLbfmz8ktez1oNyxOqD Du6reXqLWIxVDTHIT4ND7xn28JLZ3L+40pAcpYd/p6kViosEAPTMIlp4n5PqfmTW Ta1uFnnz017p0c/pQGX2r4sHytsfsdR/hssADU4y6EQeDbO2To/42VHn/dYA9+xq M9YjIQF2jXP1BXpX0LbSazPRISLiCBlk6Jg2p8RaFSnydxq0StIG8x7yc858SySB im2G0SwwdwsejG6Q5tS0pDUNEyeKRDMauCgBN+oU7yOLGAmkBk1Najb+iNm2auW5 WNpeP6kCAwEAATCCBiEwggX7BgkrBgEFBQcFAQSgggXsMIIF6KEUBggqhkiG9w0D BwQIAQEBAQEBAQGCggEBAI7fAsE52NkTYzweQsRvGE+uq4VEgwV4kccqLfPXlP9k FEyelRpCzYJCSsaO6VLCvhz0OYkffgFC50PTJiNqaE63ESBabfcAPelGIlSzGa6y dfSQBCZf5e/RcAv9wkeCO98lu6DFgPkgxn55ttcnIwH1yNVu/mlo/G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rM/5S7Mw8CqQwQG8Eh9LTav+/RzMQ1taaXUPDTAV+5WYq2JnU T5x+9XVaaanVL5SWu9YGVRMRfQ2yuh89gH9bVYC80QqnG9c+LwwU -----END NEW CERTIFICATE REQUEST----- 2. [root@auto-hv-02-guest02 ~]# pki -d certsdb -c redhat -n "PKI CA Administrator for Example.Org" -h localhost -p 8080 cert-request-submit caDualCert.xml ----------------------------- Submitted certificate request ----------------------------- Request ID: 13 Type: enrollment Request Status: pending Operation Result: success 3. Approved the request from the CA agent page. 4. The certificate was generated and verified the Key has been archived in KRA. Christina, Is the above sufficient to mark this bug verified. Do I have to test the key generation using firefox? If so, which version of firefox should I test it with? as long as the key is verified to be archived, then it's good. For the record, the "old firefox" I mentioned to have tested with in comment#6 is firefox-34.0.5 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-2016-2403.html |