openssl dgst
Generate digest values and perform signature operations. More information: https://docs.openssl.org/master/man1/openssl-dgst/.
- Calculate the SHA256 digest for a file, saving the result to a specific file:
openssl dgst -sha256 -binary -out
- Sign a file using an RSA key, saving the result to a specific file:
openssl dgst -sign -sha256 -sigopt rsa_padding_mode:pss -out
- Verify an RSA signature:
openssl dgst -verify -signature -sigopt rsa_padding_mode:pss
- Sign a file using and ECDSA key:
openssl dgst -sign -sha256 -out
- Verify an ECDSA signature:
openssl dgst -verify -signature
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
