Best practice to sign InstallShield setup and include intermediate certificates

旧城冷巷雨未停 提交于 2019-12-11 22:59:15

问题


I have thwte certificate to sign my InstallShield setup. When we updated our certificate this year, it now depends on intermediate certificate "thawte code signing ca - g2".

We fear that many of our customers might not have this intermediate root certificate installed (in fact our own build server did not have it and so build had started to fail after renewing the certificate) and thus they will get the "unverified publisher" error.

What is the best practice to distribute that intermediate certificate? Is there any way to change the certification path so that it just depends on more common "thawte code signing ca"?

I would greatly appreciate any help.

Thanks, Sanjay


回答1:


I finally figured out the issue. It turns out there is an option to include certificate roots in the pfx file when you export it. Following is what i followed on my Windows machine where I had installed the certificate that i got from thawte. 1. Open certificate store from Start->Run->certmgr.msc 2. Export the certificate. 3. Ensure to select to include private key as well. 4. Then you get an option to include root certificates - this is unchecked by default. Check it.




回答2:


Micrsoft has a trusted root program that current contains the following memebers:

Windows Root Certificate Program - Members List (All CAs)

For applications distributed to the general public, the best practice is to get a code signing certificate backed up by one of these roots. For internal enterprise applications ( IT, DoD ectera ) you can use others provided that you have a means in place of distributing the roots for your cert. InstallShield cannot currently do this directly but it's possible using custom actions that call CAPI / CAPICOM / .NET X509 classes.

BTW, when you look at the certificate details, look all the way up to the first entry to know who the root is. For example my cert says COMODO Code Signing 2 but then above that it says USERTrust. When I view the USERTrust certificate is says "UTN-UserFirst-Object". That name is then found on the Microsoft web page linked above.



来源:https://stackoverflow.com/questions/9869054/best-practice-to-sign-installshield-setup-and-include-intermediate-certificates

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!