使用openssl创建sha256签名



我需要使用OpenSSL ?创建一个SHA256签名

我试着:

  openssl sha256 -sha256 -binary -sign (providing my priv key & contents)
但是,我得到以下错误:openssl:Error: 'sha256' is an invalid command.

sha1工作得很好,但我认为sha256也支持

OpenSSL使用命令'dgst'来计算各种摘要(包括SHA-256)。该命令还允许对摘要签名(使用私钥)并验证签名(使用公钥)。

最新更新