jarsigner
Sign and verify Java archive (JAR) files. More information: <https://docs.oracle.com/en/java/javase/20/docs/specs/man/jarsigner.html>.
Install
- All systems
-
curl cmd.cat/jarsigner.sh
- Debian
-
apt-get install gcj-4.7-jdk
- Ubuntu
-
apt-get install openjdk-12-jdk-headless
- Arch Linux
-
pacman -S java-environment-common
- Kali Linux
-
apt-get install openjdk-11-jdk-headless
- Fedora
-
dnf install java-9-openjdk-devel-debug-1
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install openjdk-12-jdk-headless
- Raspbian
-
apt-get install openjdk-8-jdk
- Dockerfile
- dockerfile.run/jarsigner
Sign and verify Java archive (JAR) files. More information: <https://docs.oracle.com/en/java/javase/20/docs/specs/man/jarsigner.html>.
-
Sign a JAR file:
jarsigner path/to/file.jar keystore_alias
-
Sign a JAR file with a specific algorithm:
jarsigner -sigalg algorithm path/to/file.jar keystore_alias
-
Verify the signature of a JAR file:
jarsigner -verify path/to/file.jar
© tl;dr; authors and contributors