snippetbashTip
keytool — A certificate management utility included with Java. More information: <https://docs.oracle.com/en/j
Viewed 0 times
managementcommandincludedclicertificatewithkeytoolutility
Problem
How to use the
keytool command: A certificate management utility included with Java. More information: <https://docs.oracle.com/en/java/javase/25/docs/specs/man/keytool.html>.Solution
keytool — A certificate management utility included with Java. More information: <https://docs.oracle.com/en/java/javase/25/docs/specs/man/keytool.html>.Create a keystore:
keytool -genkeypair -v -keystore {{path/to/file.keystore}} -alias {{key_name}}Change a keystore password:
keytool -storepasswd -keystore {{path/to/file.keystore}}Change a key's password inside a specific keystore:
keytool -keypasswd -alias {{key_name}} -keystore {{path/to/file.keystore}}Code Snippets
Create a keystore
keytool -genkeypair -v -keystore {{path/to/file.keystore}} -alias {{key_name}}Change a keystore password
keytool -storepasswd -keystore {{path/to/file.keystore}}Change a key's password inside a specific keystore
keytool -keypasswd -alias {{key_name}} -keystore {{path/to/file.keystore}}Context
tldr-pages: common/keytool
Revisions (0)
No revisions yet.