4

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.

Nadir Fouka
  • 452
  • 4
  • 14

1 Answers1

1

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.

hess
  • 76
  • 5