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

FISH-7359 Fix change-master-password for JKS Keystores #6278

Merged
merged 2 commits into from
May 4, 2023

Conversation

aubi
Copy link
Contributor

@aubi aubi commented May 4, 2023

Description

After Payara upgrade from P5 to P6, keystore and cacerts remain in the JKS format.
This PR fixes change-master-password command, so it accepts JKS keystores.

Testing

Testing Performed

I tried to use old domain with jks keystores (e.g. no p12 files in domain/config) and copied it to Payara from this PR.

Then try

./asadmin change-master-password

Verification can be done with second run or with keytool in the domain/config directory:

keytool -list --keystore cacerts.jks
keytool -list --keystore keystore.jks

The new password is required.

Testing Environment

Linux, OpenJDK 8 and 11

aubi added 2 commits May 4, 2023 13:46
Use p12 formats if available, otherwise jks.
Report not existing keystores (breaks server setup).
@aubi
Copy link
Contributor Author

aubi commented May 4, 2023

Jenkins test please

@breakponchito breakponchito self-requested a review May 4, 2023 14:57
Copy link
Contributor

@breakponchito breakponchito left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@aubi aubi merged commit 19e427e into payara:master May 4, 2023
@aubi aubi deleted the FISH-7359-fix-change-master-password branch May 4, 2023 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants