A lightweight GO implementation of Java keytool that does not require an installation of Java JDK.
- Download the latest version of the application from the releases page.
- Rename the downloaded file to
lightkeytool
. - Add execute permissions to the binary. E.g., on Linux and Mac:
chmod u+x lightkeytool
. - Put the binary in you
PATH
. E.g., on Linux and Mac:mv lightkeytool /usr/local/bin/lightkeytool
.
lightkeytool --help
A lightweight CLI implementation of keytool that requires no Java JDK to be installed.
Usage:
lightkeytool [command]
Available Commands:
completion Generate the autocompletion script for the specified shell
exportcert Export data
help Help about any command
importkeystore Import contents from another keystore
Flags:
-h, --help help for lightkeytool
-v, --verbose verbose output
--version version for lightkeytool
Use "lightkeytool [command] --help" for more information about a command.
Make sure that you have downloaded and installed Go. Version 1.22 or higher is required.
git clone https://github.com/marsskop/lightkeytool.git
cd lightkeytool
go run main.go