使用证书 .p12 签署包 .deb

Sign a package .deb with Certificate .p12

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

您可以使用 openssl 来完成。

转换.p12 to a .pem and then sign the file with pkeyutl,如:

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

There are other options.