简体   繁体   English

使用证书 .p12 签署包 .deb

[英]Sign a package .deb with Certificate .p12

I packaged a java application under ubuntu in .deb I would like to sign it.我在 .deb 中打包了一个 ubuntu 下的 java 应用程序,我想对其进行签名。
under windows I use signtool.exe to sign the .exe with command :在 Windows 下,我使用 signtool.exe 用命令对 .exe 进行签名:
signtool.exe sign / f cert.p12 / p passwordcert app.exe . signtool.exe sign / f cert.p12 / p passwordcert app.exe
Is there a similar command to sign under linux? linux下有没有类似的签名命令?
Thank you for your help.感谢您的帮助。

You can do it by using openssl.您可以使用 openssl 来完成。

Convert the .p12 to a .pem and then sign the file with pkeyutl , like:.p12转换为 .pem ,然后使用pkeyutl对文件进行签名,例如:

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

There are other options . 还有其他选择

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM