3

I am trying to deploy some MVC4 web apps with secure bindings on Windows Server 2008R2 and WiX 3.6 (stable)

I am desperately trying to get this to work without resorting to writing a follow-up powershell script or my own custom action.

The WiX iis:Certificate extension wants to install the certificate for me first before I can use it. That's not going to work in a production environment. The certificate is not going to be available to the installer at any time in .cer or .pfx form. It will already be deployed on the target machine in the localMachine/my store where you'd normally go when installing manually with the IIS7 snap-in. I will want the installer to be able to reference it by supplying any of the following: thumbprint, Friendly id or perhaps find it matching the web site host header binding pattern.

Is there any way of referencing a pre-installed certificate in WiX script without having the original .pfx file and password at build time or install time? (I got these last two scenarios working fine in test, but it isn't what the client wants).

Thanks.

4

2 に答える 2

3

私はあなたと同様の要件を持っていたので、それについての投稿を書きました: http://manyrootsofallevilrants.blogspot.co.uk/2013/07/assign-certificate-set-https-binding.html

于 2013-07-07T17:17:24.763 に答える
0

さて、これを投稿してからしばらく経ちました。

それ以来、私はそれに取り掛かり、C# でカスタム アクションを作成して、面倒な作業を行いました。Powershell では、必要な障害モードを制御できなかったようです。

コードを投稿することはできません-それは私のクライアントに属しているためですが、この質問で説明されているのと同様の方法で Microsoft.Web.Administration を使用したと言えます: Programatically Import Cert Into IIS . それが役立つことを願っています。それは私が望んでいた答えではありませんでしたが、問題は解決しました。

于 2012-09-25T21:32:57.097 に答える