dongwei4103 2017-08-17 09:35
浏览 297

可以openssl smime -verify与sha256证书

I've been using the following to correctly verify S/MIME documents with SHA1 signatures, but I recently have come upon the need to do the same with SHA256 signatures as SHA1s have been shown to be insecure.

# openssl smime -verify -noverify -inform SMIME -certfile cert.pem -in rawfile.txt -out verified.txt

Has anyone done this? I've tried adding switches:

openssl sha -sha256

As was suggested when verifying just the digest files, but it throws an error.

Ultimately I'm looking to do this via PHP with something like openssl_pkcs7_verify, but I've not gotten even the commandline to work, yet so I'm stumped.

This is on centOS, OpenSSL 1.0.1e-fips 11 Feb 2013

  • 写回答

1条回答 默认 最新

  • duanjiwang2927 2017-08-19 11:09
    关注

    It turns out that openssl is able to determine its sha256 and verify without a switch, if your version of openssl supports sha256.

    评论

报告相同问题?

悬赏问题

  • ¥15 程序不包含适用于入口点的静态Main方法
  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记