Files
tldr/pages.zh/common/jarsigner.md
2023-06-04 07:18:54 +05:30

17 lines
443 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# jarsigner
> 签名并验证 Java 存档JAR文件。
> 更多信息:<https://docs.oracle.com/en/java/javase/20/docs/specs/man/jarsigner.html>.
- 签名一个 `JAR` 文件:
`jarsigner {{path/to/file.jar}} {{keystore_alias}}`
- 使用特定算法对 `JAR` 文件进行签名:
`jarsigner -sigalg {{algorithm}} {{path/to/file.jar}} {{keystore_alias}}`
- 验证 `JAR` 文件的签名:
`jarsigner -verify {{path/to/file.jar}}`