Skip to content

Instantly share code, notes, and snippets.

@miguelSantirso
Created May 16, 2014 09:43
Show Gist options
  • Save miguelSantirso/5912f75725077b5e57c1 to your computer and use it in GitHub Desktop.
Save miguelSantirso/5912f75725077b5e57c1 to your computer and use it in GitHub Desktop.
Change .p12 password without changing the SHA1 fingerprint
# 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
@louisptremblay
Copy link

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