2023-02-21 05:30:55 +00:00
|
|
|
# keytool
|
|
|
|
|
2023-11-15 04:25:25 +00:00
|
|
|
> A certificate management utility included with Java.
|
2023-06-04 02:48:54 +01:00
|
|
|
> More information: <https://docs.oracle.com/en/java/javase/20/docs/specs/man/keytool.html>.
|
2023-02-21 05:30:55 +00:00
|
|
|
|
|
|
|
- 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:
|
|
|
|
|
2023-06-14 16:32:31 +01:00
|
|
|
`keytool -keypasswd -alias {{key_name}} -keystore {{path/to/file.keystore}}`
|