How to code sign using .Pem file?
I am trying to code sign my application components using a digital certificate. The certificate format is .Pem
I referred the below url and try to implement the code signing using the Visual Studio SignTool.exe
CodeSign
C:Program Files (x86)Microsoft Visual Studio 10.0VC>"C:Program Files (x86)Microsoft SDKsWindowsv7.0ABinsigntool.exe" sign /d "C:UsershparaDesktopSignCertTest.exe" /f "C:UsersguestDesktopSignCertTest.pem"SignTool
Signtool.exe returned the error : "Error: Missing filename.".
Question:
My actual build environment is on Linux. Just for testing purpose, I copied the certificate file to Win 7 computer and tried to sign the application using visual studio signtool.exe.
The signing certifictae request (csr) is generated on Linux machine. Finally I need to sign the application on Linux machine.
How to codsign using the Pem file ?
Solution:
Step 1: Generate .pfx file from the .Pem File
openssl pkcs12 -inkey MyprivateKey.key -in MyCertificate.pem -export -out MyCert.pfx
Step 2: Sign the code using .pfx file (Ex: Microsoft SDK SignTool.exe)
signtool sign /f "MyCert.pfx" /p password /t http://timestamp.verisign.com/scripts/timestamp.dll "myapp.exe"
链接地址: http://www.djcxy.com/p/67852.html
上一篇: Windows 8和Windows Phone 8应用程序开发
下一篇: 如何使用.Pem文件编码签名?