Skip to content

Instantly share code, notes, and snippets.

@azyu
Last active March 22, 2022 14:45
Show Gist options
  • Save azyu/d08d74376beb59b1fdd44b0dc438dbed to your computer and use it in GitHub Desktop.
Save azyu/d08d74376beb59b1fdd44b0dc438dbed to your computer and use it in GitHub Desktop.
openssl sha256 sign / verify command line
openssl dgst -sha256 -sign private.pem -out text.txt.rsa text.txt
openssl dgst -sha256 -verify public.pem -signature text.txt.rsa text.txt
cat text.txt.rsa | base64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment