【问题标题】:Verifying files signed with openssl验证用 openssl 签名的文件
【发布时间】:2015-06-16 19:36:34
【问题描述】:

如果我将带有 openssl 的签名文件发送给某人,是否可以在没有私钥文件的情况下验证该文件?

我还没有将私钥发送给对方。

之后,如果证书被吊销以及证书何时被吊销,CA 应该验证文件?

【问题讨论】:

标签: openssl cryptography


【解决方案1】:

要验证文件签名,您需要公钥,请记住,切勿将私钥发送给其他人,它仅供所有者使用。抱歉,我没有回答最后一个问题,但这有点难以理解。

【讨论】:

  • 一直说验证失败
  • 提供更多信息,你在使用什么函数,给代码sn-p,我没有足够的信息
  • 首先我签署了文件openssl rsautl -sign -in msg1 -inkey newkey.pem -out msg1.firma 在我尝试从证书openssl x509 -in newcert.pem -pubkey -noout > pubkey.pem 中提取公钥之后,当我尝试验证文件时,我得到验证失败openssl dgst -verify pubkey.pem -signature msg1.firma msg1 Verification Failure跨度>
  • 谢谢你,但我错过了一个命令..openssl rsautl -verify -in msg1.firma -certin -inkey newcert.pem
猜你喜欢
  • 2020-01-13
  • 2011-01-24
  • 1970-01-01
  • 2020-06-11
  • 1970-01-01
  • 2017-03-24
  • 2016-02-08
  • 1970-01-01
  • 2014-01-15
相关资源
最近更新 更多