• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 790
  • Last Modified:

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.
0
HPFE455
Asked:
HPFE455
  • 2
  • 2
2 Solutions
 
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

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now