如何仅使用 .SPC 文件对代码进行签名?

发布于 2024-08-09 18:07:23 字数 450 浏览 6 评论 0原文

我使用 InstallShield 2010,它需要 SPC/PFX 和 PVK 文件来对我的文件进行签名。我刚刚获得了代码签名 CERT,但他们给我的只是一个 SPC 文件。我右键单击它并将其安装在 Windows 7 中。我假设 PVK 文件位于此系统上的某个位置,但我无法使用证书 MMC 等找到它。

那么我将如何在 InstallShield 中使用此 SPC 文件来签署我的文件而无需PVK 文件?我可以在“我的商店”(个人证书)中查看证书并将其导出到 .CER 或 P7B,但 PFX 选项呈灰色,因此由于某种原因我无法导出 PVK。

是否可以在没有 PVK 文件的情况下使用 InstallShield 进行签名?我还担心如果我必须重新加载这台计算机会发生什么,我将如何在没有 PVK 文件的情况下再次安装此代码签名 .SPC?我习惯于将 PFX 文件保存在备份系统上。这是一个 3 年期的证书,所以我想在 3 年后我将重新加载这台计算机。

I use InstallShield 2010 which requires a SPC/PFX and a PVK file to sign my files. I just got a Code Signing CERT but all they gave me was a SPC file. I right-clicked it and installed it in Windows 7. I assume the PVK file is somewhere on this system but I cannot find it using the Certificates MMC, etc.

So how will I use this SPC file in InstallShield to sign my files without have a PVK file? I can view the certificate in "My Store" (Personal certs) and export it to a .CER or P7B but the PFX option is grayed out so I can't export the PVK for some reason.

Is it possible to sign using InstallShield without a PVK file? I'm also concerned what will happen if I have to reload this computer, how will I install this code signing .SPC again with no PVK file? I'm used to keeping PFX files on my backup system. It's a 3 year cert so I imagine in 3 years I am going to reload this computer.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

韶华倾负 2024-08-16 18:07:23

这适用于 IE,您只需要了解其中的原理即可。

从 GoDaddy 下载 .spc 证书。
转到 IE -> 工具 -> Internet 选项 -> 内容 -> 证书 -> 个人。
如果证书不存在,请导入它。
一旦出现,您可以选择导出->下一步->是,导出私钥->个人信息交换 - PKCS #12 (.PFX)

This works from IE, you just have to know the hoops.

Download the .spc certificate from GoDaddy.
Go to IE->Tools->Internet Options->Content->Certificates->Personal.
If the cert is not there, import it.
Once it is there, then you can chose Export->Next->Yes, Export private key->Personal Information Exchange - PKCS #12 (.PFX)

默嘫て 2024-08-16 18:07:23

问题在于 GoDaddy 及其密钥生成不适用于 IE 8。在我使用 FireFox 后,我能够运行课程,然后导出所需的文件 (p12) 等。

The problem was with GoDaddy and their key generation not working with IE 8. After I used FireFox I was able to run the course and then export the required file (p12) etc.

薄荷港 2024-08-16 18:07:23

需要明确的是,正如 Neal 所说,Firefox 就是答案。虽然一开始对我来说并不明显,但 pvk 文件的生成在 Chrome 中不可用,在 IE8 或更高版本中也不可用。创建 CSR 时,您应该有两个选项:自动和手动。使用 Chrome 或 IE8+ 时则不是这种情况,只有手动选项可用。

虽然可能有某种方法可以使用 Chrome 或 IE 8+ 创建哈希值,但我不知道该怎么做,并且留下了输入我自己的哈希值的框。然而,当我使用 Firefox 时,自动选项可用,并且该过程已经结束......我安装了证书,导出了 P12 并准备好运行。

最重要的是,只需使用 Firefox 完成整个请求/下载过程即可省去麻烦……

To be really clear, as Neal stated, Firefox is the answer. Although it wasn’t inherently obvious to me at first, the generation of the pvk file is not available in Chrome, nor is it available in IE8 or above. When creating the CSR, you should have two options, automatic and manual. This is not the case when using Chrome or IE8+, only the manual option was available.

While there may be some way to create the hash using Chrome or IE 8+, I did not know how to do it, and was left with the box to enter my own hash. However, when I used Firefox, the automatic option was available and the process was over and done… I installed the certificate, exported the P12 and was ready to roll.

Bottom line is, just do the whole requesting/downloading process with Firefox and save yourself the hassle…

此岸叶落 2024-08-16 18:07:23

GoDaddy 只为您提供 .spc 文件,您必须创建 .p12 文件。我是这样做的:
1. 右键单击​​ myCert.spc,安装证书(将 .spc 安装到 Windows 中)
2. 双击 myCert.spc(在 certmgr 中打开它),导出到 .cer 文件。
3. 将该 .cer 文件导入 Firefox。
4. 使用 Firefox:备份您刚刚导入的内容以创建 .p12 文件。

然后您可以使用该 .p12 文件来签署您的代码。

GoDaddy just gives you the .spc file, you have to create your .p12 file. Here is how I did this:
1. Right click myCert.spc, Install Certificate (to install the .spc into Windows)
2. Double click myCert.spc (to open it in certmgr), export to a .cer file.
3. Import that .cer file into Firefox.
4. From with Firefox: backup what you just imported to create a .p12 file.

Then you can use that .p12 file to sign your code.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文