如何检查.sig文件是否正确?

时间:2016-04-06 05:51:47

标签: ssl openssl digital-signature

我发出以下命令来为文件创建签名(linux内核):

  1. openssl req -newkey rsa -keyout codesign.key -out codesign.req
  2. openssl ca -config ca.cnf -extensions codesigning -in codesign.req -out codesign.crt

  3. openssl cms -sign -binary -noattr -in vmlinuz -signer codesign.crt -inkey codesign.key -certfile ca.crt -outform DER -out vmlinuz.sig

  4. ca.cnf文件适用于我自己的私有CA基础架构,它具有digitalSignature密钥用法扩展和codeSigning扩展密钥用法扩展。

    我怎样才能验证vmlinuz.sig是vmlinuz的签名?

0 个答案:

没有答案