3

I need to create a SHA256 signature using OpenSSL ?

I tried:

  openssl sha256 -sha256 -binary -sign (providing my priv key & contents)

But, I get the following error : openssl:Error: 'sha256' is an invalid command.

sha1 works fine, but I thought sha256 was supported as well.

0

1 Answer 1

4

OpenSSL uses the command 'dgst' to calculate various digests (including SHA-256). The command also allows you to sign a digest (using a private key) and verify a signature (using a public key).

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.