keytool
A certificate management utility included with Java. More information: <https://docs.oracle.com/en/java/javase/20/docs/specs/man/keytool.html>.
Install
- All systems
-
curl cmd.cat/keytool.sh
- Debian
-
apt-get install openjdk-12-jre-headless
- Ubuntu
-
apt-get install openjdk-12-jre-headless
- Arch Linux
-
pacman -S java-runtime-common
- Kali Linux
-
apt-get install nvidia-openjdk-8-jre
- Fedora
-
dnf install java-openjdk-headless-slowdebug-1
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install openjdk-12-jre-headless
- Raspbian
-
apt-get install openjdk-9-jre-headless
- Dockerfile
- dockerfile.run/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
© tl;dr; authors and contributors