【问题标题】:Creating a sha256 signature using openssl使用 openssl 创建 sha256 签名
【发布时间】:2012-01-19 15:26:36
【问题描述】:

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

我试过了:

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

但是,我收到以下错误:openssl:Error: 'sha256' is an invalid command.

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

【问题讨论】:

    标签: openssl rsa sha1 signing sha256


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-03-24
      • 1970-01-01
      • 2012-05-27
      • 1970-01-01
      • 2022-01-18
      • 2018-06-14
      • 2014-03-28
      • 2023-03-10
      相关资源
      最近更新 更多