Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #37384 - properly pass fips=false when checking keystore #445

Merged
merged 1 commit into from Apr 25, 2024

Conversation

evgeni
Copy link
Member

@evgeni evgeni commented Apr 25, 2024

In a FIPS-enabled environment, calling keytool -list with a wrong password doesn't yield an error, unless we also pass fips=false like we do when creating the keystore:

# keytool -list -keystore ./store -storepass wrong-password
Keystore type: PKCS11
Keystore provider: SunPKCS11-NSS-FIPS

Your keystore contains 0 entries

Passing fips=false makes it correctly raise the expected exception:

# keytool -list -keystore ./store -storepass wrong-password -J-Dcom.redhat.fips=false
keytool error: java.io.IOException: keystore password was incorrect

Fixes: 6fea0bb
(cherry picked from commit b9667a0)

In a FIPS-enabled environment, calling `keytool -list` with a wrong
password doesn't yield an error, unless we also pass `fips=false` like
we do when creating the keystore:

    # keytool -list -keystore ./store -storepass wrong-password
    Keystore type: PKCS11
    Keystore provider: SunPKCS11-NSS-FIPS

    Your keystore contains 0 entries

Passing `fips=false` makes it correctly raise the expected exception:

    # keytool -list -keystore ./store -storepass wrong-password -J-Dcom.redhat.fips=false
    keytool error: java.io.IOException: keystore password was incorrect

Fixes: 6fea0bb
(cherry picked from commit b9667a0)
@ekohl
Copy link
Member

ekohl commented Apr 25, 2024

Looking at #446 and the changes in 17.1 (1a3e425 and e71f390) I'm tempted to update to 17.1 in 3.9-stable, but I'll leave that up to you.

@evgeni
Copy link
Member Author

evgeni commented Apr 25, 2024

Looking at #446 and the changes in 17.1 (1a3e425 and e71f390) I'm tempted to update to 17.1 in 3.9-stable, but I'll leave that up to you.

For, uh, reasons, I prefer a 17.0.1 release ;-)

@evgeni evgeni merged commit 818b7f2 into 17.0-stable Apr 25, 2024
7 checks passed
@evgeni evgeni deleted the 1701 branch April 25, 2024 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants