Created
June 8, 2024 22:18
-
-
Save stokito/7d2570d686e1e884a82eec2826f346af to your computer and use it in GitHub Desktop.
GnuTLS sign and verification
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
certtool --generate-privkey --key-type=ed25519 --outfile privkey.pem | |
certtool --generate-self-signed --load-privkey privkey.pem --outfile cert.pem | |
certtool --p7-detached-sign --load-certificate cert.pem --load-privkey privkey.pem --infile msg.txt --outfile msg.txt.p7s | |
certtool --p7-info --infile msg.txt.p7s | |
certtool --p7-verify --load-certificate cert.pem --infile msg.txt.p7s --load-data msg.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://www.gnutls.org/manual/html_node/certtool-Invocation.html#certtool-Invocation
https://habr.com/ru/articles/555938/
https://wiki.archlinux.org/title/GnuTLS