1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 22:42:08 +02:00
tldr/pages/common/jarsigner.md

16 lines
408 B
Markdown

# jarsigner
> Sign and verify Java archive (JAR) files.
> More information: <https://docs.oracle.com/javase/9/tools/jarsigner.htm>.
- 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}}`