Skip to content

Instantly share code, notes, and snippets.

@grigoriy
Last active February 14, 2020 15:53
Show Gist options
  • Save grigoriy/b07216f73d6d539cdf2f986ea36da30b to your computer and use it in GitHub Desktop.
Save grigoriy/b07216f73d6d539cdf2f986ea36da30b to your computer and use it in GitHub Desktop.
Duplicate a key creating new alias in a jks keystore using keytool.
keytool -keyclone -alias 'old-alias' -dest 'new-alias' -keypass 'old_keypass' -new 'new_keypass' -keystore '/path/to/keystore' -storepass 'storepass'
@jyeary
Copy link

jyeary commented Feb 14, 2020

This worked like a champ.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment