我有客户提供的代码签名证书(.cer)文件 . 我想用它签署我的 .exe
文件 . 我在谷歌搜索了很多代码签名使用 signtool.exe
并跟着this link .
但是在每个帖子中他们都要求拥有 .pfx
文件 . 当我尝试从 .cer
文件创建 .pfx
文件时,它没有给我任何类型的选项来创建 .pfx
文件 .
然后我跟着另一个博客 . 因为他们告诉我要创建.pfx文件,我必须创建.pvk文件和.spc文件 .
要创建我使用的 .spc
文件
cert2spc myCertificate.cer mySPCFile.spc
要创建我使用过的 .pvk
文件
makecert -sv mypvkfile.pvk mycerfile.cer
但是当我使用此命令创建 .pvk
文件时, .cer
文件和 .pvk
文件中的信息将被更改 . 然后我才知道这个命令会创建证书文件 .
我用户命令下面创建 .pfx
文件 .
pvk2pfx -pvk mypvkfile.pvk -pi mypassword -spc myspcfile.spc -pfx mypfxfile.pfx
.pfx
文件已成功创建并且代码签名也已成功完成 .
But when I install my .exe file to other machine it was still giving me Publisher : Unknown.
然后我检查了我的 .exe
文件的属性从那里到数字签名选项卡我看到我的证书然后我已经手动将其安装到机器上,然后我安装我的应用程序,发现该发布者来了,但它不是 .cer
文件的例外信息之前含有 .
我的问题是:
-
How can I create .pfx file from .cer file. Export option is not working with this .cer certificate which is provided by client?
-
Is there any other ways to create .pvk file from .cer file?
-
How can I create .pvk file which do not change information of the .cer file?
-
Am I doing anything wrong in my above process?