Q:

Sign a package .deb with Certificate .p12

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.

A:

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.

