WIX 和 IIS 中的证书 [英] WIX and Certificates in IIS

查看:21
本文介绍了WIX 和 IIS 中的证书的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试设置我的安装,以便使用 WIX 配置我的站点的证书.

I am trying to setup my install to have my site configured with its certificate using WIX.

我可以在 IIS 中查看证书并可以访问 .cer 文件.这就是我对证书的了解,所以请把任何答案都写下来.(即我不知道我的BinaryKey"是什么).

I can view the certificate in IIS and have access to the .cer file. That is about all I know about certificates, so please dumb down any answers. (ie I have no idea what my "BinaryKey" is).

证书已安装在机器上.理想情况下,我只想在 wix 中有一种方法来配置要使用的已安装证书.如果有人知道怎么做,请在此处发布!

The certificate is already installed on the machine. Ideally I would like to just have a way in wix to configure which installed certificate to use. If anyone knows how to do that please post it here!

如果不能这样做,那么我会喜欢一个关于如何安装(或者卸载)证书的好例子.

If that can't be done, then I would love a good example of how to install (and maybe uninstall) a certificate.

感谢您的所有回答.

瓦卡诺

推荐答案

好吧,WIX 证书领域没什么大不了的.

Okaaay, so no one big on the WIX Certificates scene.

这是我所做的最终工作:

Here is what I did that ended up working:

在我的网站下:

<iis:Certificate Id="MyCert" Name="MyCertName" StoreName="root"
StoreLocation="localMachine" BinaryKey="Certificate.Binary" />

项目中:

<Binary Id="Certificate.Binary" SourceFile="$(var.CertificatePath)" />

$(var.CertificatePath) 是指向我的 .cer 文件的设置.

$(var.CertificatePath) is a setup to point to my .cer file.

这篇关于WIX 和 IIS 中的证书的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆