Last active
February 14, 2020 15:53
-
-
Save grigoriy/b07216f73d6d539cdf2f986ea36da30b to your computer and use it in GitHub Desktop.
Duplicate a key creating new alias in a jks keystore using keytool.
This file contains hidden or 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
keytool -keyclone -alias 'old-alias' -dest 'new-alias' -keypass 'old_keypass' -new 'new_keypass' -keystore '/path/to/keystore' -storepass 'storepass' |
Author
grigoriy
commented
Aug 18, 2016
- http://stackoverflow.com/a/5707518/2263334
- https://www.digitalocean.com/community/tutorials/java-keytool-essentials-working-with-java-keystores
This worked like a champ.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment