WIX and Certificates in IIS

戏子无情 提交于 2019-12-08 02:55:53

问题


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

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).

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.

Thanks for any and all answers.

Vaccano


回答1:


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

Here is what I did that ended up working:

Under my website:

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

Under Project:

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

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



来源:https://stackoverflow.com/questions/860996/wix-and-certificates-in-iis

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