mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-26 12:52:59 +00:00
Update cheatsheets
This commit is contained in:
21
keytool
Normal file
21
keytool
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# keytool
|
||||
|
||||
> A certificate management utility included with Java.
|
||||
> 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}}`
|
||||
Reference in New Issue
Block a user