【问题标题】:Sign a package .deb with Certificate .p12使用证书 .p12 签署包 .deb
【发布时间】:2019-04-11 00:41:52
【问题描述】:

我在 .deb 中打包了一个 ubuntu 下的 java 应用程序,我想对其进行签名。
在 Windows 下,我使用 signtool.exe 签署 .exe 带命令:
signtool.exe sign / f cert.p12 / p passwordcert app.exe .
linux下有没有类似的签名命令?
感谢您的帮助。

【问题讨论】:

    标签: java cryptography certificate x509certificate


    【解决方案1】:

    您可以使用 openssl 来完成。

    转换.p12 to a .pem,然后用pkeyutl签名文件,如:

    openssl pkeyutl -sign -in file -inkey key.pem -out sig

    There are other options.

    【讨论】:

    • 谢谢 Gesferson,它成功了!
    猜你喜欢
    • 2015-12-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-07-11
    • 1970-01-01
    • 1970-01-01
    • 2014-05-15
    相关资源
    最近更新 更多