2019-11-12 21:20:20 +00:00
|
|
|
# jarsigner
|
|
|
|
|
2022-10-11 03:59:50 +01:00
|
|
|
> Sign and verify Java archive (JAR) files.
|
2023-06-04 02:48:54 +01:00
|
|
|
> More information: <https://docs.oracle.com/en/java/javase/20/docs/specs/man/jarsigner.html>.
|
2019-11-12 21:20:20 +00:00
|
|
|
|
|
|
|
- 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}}`
|