tldr/pages.zh/common/gpgv.md

17 lines
444 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# gpgv
> 验证 OpenPGP 签名。
> 更多信息: <https://www.gnupg.org/documentation/manuals/gnupg/gpgv.html>.
- 验证签名文件:
`gpgv {{path/to/file}}`
- 使用分离式签名验证已签名的文件:
`gpgv {{path/to/signature}} {{path/to/file}}`
- 在 keyrings 列表中添加一个文件(一个导出的钥匙也算作一个 keyring
`gpgv --keyring {{path/to/keyring_file}} {{path/to/signature}} {{path/to/file}}`