我从JNLP应用程序创建了一个安装程序 . 我的意思是之前,我有一个基于JNLP的应用程序部署在服务器中,现在我从这个部署的应用程序创建了一个 .msi 包 . 我的问题是当我从安装程序安装我的应用程序然后在开始我得到警告 - 安全性对话框表示无法验证应用程序证书,是否要运行该应用程序 .
.msi
我的问题,有没有办法在安装程序中的某些位置包含此证书,以便可以避免此消息框 .
As I know you need to buy it.
对于开发,您可以创建仅适用于您的计算机的本地证书 .
这里有一些信息如何做到这一点:
install SDK tool
http://www.microsoft.com/en-us/download/details.aspx?id=11310
http://margopowell.wordpress.com/2012/05/08/installing-microsoft-signtool-exe/
https://bytescout.com/support/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=296
生成从私钥和sertificate派生的PFX文件
C:\Program Files\Microsoft SDKs\Windows\v6.1\Bin>makecert.exe -sv MyProgram.pvk -n "CN=MY DIGITAL KEY" MyProgram.cer
成功
公钥和私钥密码:mypasssword
run:
pvk2pfx.exe -pvk MyProgram.pvk -spc MyProgram.cer -pfx MyProgram.pfx
MyProgram.pfx file should appear
以Inno Setup为例
$(ISCC) "/sMyProgram=C:\Program Files\Microsoft SDKs\Windows\v6.1\Bin\signtool.exe sign /f C:\Program Files\Microsoft SDKs\Windows\v6.1\Bin\MyProgram.pfx /p mypasssword $p" $(ISS_SCRIPT)
How to digitally sign MSI
signtool.exe sign /f MyPfxFile.pfx /p MyPrivateKeyPassword /d "My Product Name" /du "http://www.myproducturl.com" /t "http://timestamp.verisign.com/scripts/timestamp.dll" "MyInstaller.msi"
见link
希望它会对你有所帮助
1 回答
As I know you need to buy it.
对于开发,您可以创建仅适用于您的计算机的本地证书 .
这里有一些信息如何做到这一点:
install SDK tool
http://www.microsoft.com/en-us/download/details.aspx?id=11310
http://margopowell.wordpress.com/2012/05/08/installing-microsoft-signtool-exe/
https://bytescout.com/support/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=296
生成从私钥和sertificate派生的PFX文件
成功
公钥和私钥密码:mypasssword
run:
MyProgram.pfx file should appear
以Inno Setup为例
How to digitally sign MSI
见link
希望它会对你有所帮助