jarsigner Command Examples

Sign and verify Java archive (JAR) files. More information: https://docs.oracle.com/en/java/javase/20/docs/specs/man/jarsigner.html.

jarsigner {{path/to/file.jar}} {{keystore_alias}}

jarsigner -sigalg {{algorithm}} {{path/to/file.jar}} {{keystore_alias}}

jarsigner -verify {{path/to/file.jar}}