使用openssl创建sha256签名

使用openssl创建sha256签名,openssl,rsa,sha1,signing,sha256,Openssl,Rsa,Sha1,Signing,Sha256,我需要使用OpenSSL创建一个SHA256签名 我试过: openssl sha256 -sha256 -binary -sign (providing my priv key & contents) 但是,我得到以下错误:openssl:error:'sha256'是无效命令。 sha1工作正常,但我认为sha256也受支持。OpenSSL使用命令“”计算各种摘要(包括SHA-256)。该命令还允许您签署摘要(使用私钥)和验证签名(使用公钥)

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

我试过:

  openssl sha256 -sha256 -binary -sign (providing my priv key & contents)
但是,我得到以下错误:
openssl:error:'sha256'是无效命令。

sha1工作正常,但我认为sha256也受支持。

OpenSSL使用命令“”计算各种摘要(包括SHA-256)。该命令还允许您签署摘要(使用私钥)和验证签名(使用公钥)