Created
May 16, 2014 09:43
-
-
Save miguelSantirso/5912f75725077b5e57c1 to your computer and use it in GitHub Desktop.
Change .p12 password without changing the SHA1 fingerprint
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Step 1: Import the .p12 file into a jks keystore | |
keytool -importkeystore -srckeystore original.p12 -srcstoretype pkcs12 -destkeystore temporal.jks -deststoretype jks | |
# Step 2: Create the new .p12 file from the temporal .jks keystore | |
keytool -importkeystore -srckeystore temporal.jks -destkeystore new.p12 -srcstoretype jks -deststoretype pkcs12 | |
# Step 3: Test the new .p12 file | |
keytool -list -v -keystore new.p12 -storetype pkcs12 |
thanks, I also had to add "-destkeypass newpassword" to Step2
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Very useful, thanks for posting this!