1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/keytool.md

17 lines
499 B
Markdown
Raw Normal View History

# keytool
> Keytool is a certificate management utility included with Java.
2023-06-04 07:18:54 +05:30
> More information: <https://docs.oracle.com/en/java/javase/20/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}}`