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

17 lines
427 B
Markdown
Raw Normal View History

2019-11-12 22:20:20 +01:00
# jarsigner
> Sign and verify Java archive (JAR) files.
2023-06-04 07:18:54 +05:30
> More information: <https://docs.oracle.com/en/java/javase/20/docs/specs/man/jarsigner.html>.
2019-11-12 22:20:20 +01: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}}`