How to code sign applications using .pem file on Linux

I need to sign my application(dll, exe) using  the digital certificate. The certificate format is .pem.

My Setup build machine is on Linux. The certificate request also generated on Linux.

My build/Setup environment:

1. DLLs and EXEs are build on two different machines for Win32 bit and win64 bit. Both 32 bit and 64 bit built dll and Exes need to be signed,
2. DLLs and EXEs will be copied to the Linux machine
3. The setup.exe is built on Linux machine. This need to be signed.
 


Thanks in advance.
HPFE455Asked:
Who is Participating?
 
btanExec ConsultantCommented:
you need private key to digitally sign. e.g. where
openssl pkcs12 -inkey bob_key.pem -in bob_cert.cert -export -out bob_pfx.pfx

there is windows openssl too. typically for win exe/dll, the signtool is used with pfx.
0
 
btanExec ConsultantCommented:
0
 
HPFE455Author Commented:
Thanks breadtan. The below code worked for me.

openssl pkcs12 -inkey privatekey.key -in bob_key.pem -in bob_cert.cert -export -out bob_pfx.pfx
0
 
HPFE455Author Commented:
we need to pass the private key also.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.