Bug 1534761
| Summary: | SignerInfo class inserts wrong version # into the resulting structure | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Matthew Harmsen <mharmsen> | ||||
| Component: | jss | Assignee: | Christina Fu <cfu> | ||||
| Status: | CLOSED ERRATA | QA Contact: | ipa-qe <ipa-qe> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 7.5 | CC: | aakkiang, cfu, edewata, elio.maldonado.batiz, extras-qa, ftweedal, kwright, lmiksik, mharmsen, nkinder, rcritten, rmeggins, ssidhaye | ||||
| Target Milestone: | rc | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | jss-4.4.0-11.el7 | Doc Type: | No Doc Update | ||||
| Doc Text: |
undefined
|
Story Points: | --- | ||||
| Clone Of: | 1534760 | Environment: | |||||
| Last Closed: | 2018-04-10 17:56:52 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: | |||||||
| Bug Depends On: | 1534760 | ||||||
| Bug Blocks: | |||||||
| Attachments: |
|
||||||
|
Description
Matthew Harmsen
2018-01-15 21:59:06 UTC
Steps to verify.
0. yum install java-1.8.0-openjdk-devel
1. download test program (which I am about to attach as 'test.java')
2. create a new NSSDB: `mkdir nssdb && certutil -d nssdb -N`
Set a password for the nssdb.
3. compile test program: javac -classpath /usr/lib/java/jss4.jar test.java
4. run test program: java -classpath /usr/lib/java/jss4.jar:. Main nssdb
Provide password from step 2.
5. Check that program output is correct. A fixed version should display:
Version (should be 1) = 1
Version (should be 3) = 3
whereas the older version will have `3' on both lines:
Version (should be 1) = 3
Version (should be 3) = 3
HTH!
Fraser
Created attachment 1388794 [details]
Test program for verifying the fix.
Build used for verification root@csqa4-guest01 test1534761 # rpm -qi jss Name : jss Version : 4.4.0 Release : 11.el7 Architecture: x86_64 Install Date: Monday 29 January 2018 10:37:07 PM EST Group : System Environment/Libraries Size : 1029926 License : MPLv1.1 or GPLv2+ or LGPLv2+ Signature : RSA/SHA256, Monday 22 January 2018 07:02:01 PM EST, Key ID 199e2f91fd431d51 Source RPM : jss-4.4.0-11.el7.src.rpm Build Date : Monday 22 January 2018 06:17:27 PM EST Build Host : x86-040.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) root@csqa4-guest01 test1534761 # mkdir nssdb; certutil -d nssdb -N Enter a password which will be used to encrypt your keys. The password should be at least 7 characters long, and should consist of at least three character classes. The available character classes are: digits (0-9), ASCII lowercase letters, ASCII uppercase letters, ASCII non-alphanumeric characters, and non-ASCII characters. If an ASCII uppercase letter appears at the beginning of the password, it is not counted toward its character class. Similarly, if a digit appears at the end of the password, it is not counted toward its character class. Enter new password: Re-enter password: root@csqa4-guest01 test1534761 # vim test.java root@csqa4-guest01 test1534761 # javac -classpath /usr/lib/java/jss4.jar test.java root@csqa4-guest01 test1534761 # java -classpath /usr/lib/java/jss4.jar:. Main nssdb Enter password for NSS FIPS 140-2 User Private Key Version (should be 1) = 1 Version (should be 3) = 3 Since the test java program gives us the expected result marking this bug verified. 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/RHBA-2018:0958 |