Sign a package .deb with Certificate .p12

Nadir Fouka :

I packaged a java application under ubuntu in .deb I would like to sign it.
under windows I use signtool.exe to sign the .exe with command :
signtool.exe sign / f cert.p12 / p passwordcert app.exe .
Is there a similar command to sign under linux?
Thank you for your help.

hess :

You can do it by using openssl.

Convert the .p12 to a .pem and then sign the file with pkeyutl, like:

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

There are other options.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=107771&siteId=1