Discussion:
[WiX-users] How to create a website with HTTPS using WIX
Nageswara Rao
2012-09-21 10:23:32 UTC
Permalink
Hi Team,

Could you please let me know how to create a website with HTTPS and below is
the code, what I am working

<util:User Id="AppPoolUser" CreateUser="no" Domain="DOMAIN"
Name="[APPPOOLUSER]" Password="[APPPOOLPWD]" RemoveOnUninstall="yes"/>
<iis:WebAppPool Id="AppPoolId" Name="AppPool"
Identity="other" User="AppPoolUser" RecycleMinutes="600"
ManagedPipelineMode="integrated"/>
<iis:WebSite Id="ID"
Description="APP-IT1" AutoStart="yes" Directory="INSTALLLOCATION"
StartOnInstall="yes" WebApplication="WebAppID">
<iis:WebAddress Id="Webadreess" Port="8080" IP="*"
Header="[HOSTNAME]" Secure="yes"/>
</iis:WebSite>

I was able to create a website with HTTPS from the above but when I try to
access it from IIS, it’s not accessible. I believe we should add SSL
certificate to website to make it run. Please let me know how we can create
that SSL Certificate from WIX and make website accessible with “HTTPS”




--
View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/How-to-create-a-website-with-HTTPS-using-WIX-tp7580728.html
Sent from the wix-users mailing list archive at Nabble.com.
John Cooper
2012-09-21 15:38:10 UTC
Permalink
Well if you're creating a website versus using an existing one, then pretty much all of your IIS authoring needs to be in components. That's a pretty unusual pattern in practice. Usually, my app pool, virtual directory, and web applications authoring is in components but I use the website elements only to identify an existing website.

In any case, I'm not seeing any components at all in your sample which would create a host of issues.
--
John Merryweather Cooper
Build & Install Engineer – ESA
Jack Henry & Associates, Inc.®
Shawnee Mission, KS  66227
Office:  913-341-3434 x791011
***@jackhenry.com
www.jackhenry.com



-----Original Message-----
From: Nageswara Rao [mailto:***@gmail.com]
Sent: Friday, September 21, 2012 5:24 AM
To: wix-***@lists.sourceforge.net
Subject: [WiX-users] How to create a website with HTTPS using WIX


Hi Team,

Could you please let me know how to create a website with HTTPS and below is the code, what I am working

<util:User Id="AppPoolUser" CreateUser="no" Domain="DOMAIN"
Name="[APPPOOLUSER]" Password="[APPPOOLPWD]" RemoveOnUninstall="yes"/>
<iis:WebAppPool Id="AppPoolId" Name="AppPool"
Identity="other" User="AppPoolUser" RecycleMinutes="600"
ManagedPipelineMode="integrated"/>
<iis:WebSite Id="ID"
Description="APP-IT1" AutoStart="yes" Directory="INSTALLLOCATION"
StartOnInstall="yes" WebApplication="WebAppID">
<iis:WebAddress Id="Webadreess" Port="8080" IP="*"
Header="[HOSTNAME]" Secure="yes"/>
</iis:WebSite>

I was able to create a website with HTTPS from the above but when I try to access it from IIS, it’s not accessible. I believe we should add SSL certificate to website to make it run. Please let me know how we can create that SSL Certificate from WIX and make website accessible with “HTTPS”
--
View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/How-to-create-a-website-with-HTTPS-using-WIX-tp7580728.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
WiX-users mailing list
WiX-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
NOTICE: This electronic mail message and any files transmitted with it are intended
exclusively for the individual or entity to which it is addressed. The message,
together with any attachment, may contain confidential and/or privileged information.
Any unauthorized review, use, printing, saving, copying, disclosure or distribution
is strictly prohibited. If you have received this message in error, please
immediately advise the sender by reply email and delete all copi
Nick Ramirez
2012-09-21 16:37:36 UTC
Permalink
When I'd created a new website in IIS and wanted to bind a certificate to the
IP address, I didn't find a WiX element that would do it. At the time, I
used a shell script to do this binding, using netsh. I ran the shell script
as a custom action. This probably isn't the most robust way to do it. So I
am eager to hear alternatives.



--
View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/How-to-create-a-website-with-HTTPS-using-WIX-tp7580728p7580749.html
Sent from the wix-users mailing list archive at Nabble.com.
Simon Hawke
2012-09-27 00:37:00 UTC
Permalink
Hi. I came up against this too. I had the server SSL certificate in (Local machine\my) already. I wrote a custom action in C# to take the name of the website as a parameter and install the certificate into the website given the certificate's 'friendly id' using the Microsoft.Web.Administration library. (I set a useful friendly id to match the targeted fully qualified host header on the SSL certificate so that it would show up as something identifiable in IIS at the end of this activity).

I posted on Stack Overflow with a similar question, but didn't get an answer. (http://stackoverflow.com/questions/12427654/assign-ssl-certificate-that-is-already-installed-on-a-server-to-an-https-binding) - As stated - I can't give the code over, but the general idea should be enough for a good developer to manage it.

Hope that helps. Si.


When I'd created a new website in IIS and wanted to bind a certificate to the
Post by Nick Ramirez
IP address, I didn't find a WiX element that would do it. At the time, I
used a shell script to do this binding, using netsh. I ran the shell script
as a custom action. This probably isn't the most robust way to do it. So I
am eager to hear alternatives.
--
View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/How-to-create-a-website-with-HTTPS-using-WIX-tp7580728p7580749.html
Sent from the wix-users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
WiX-users mailing list
https://lists.sourceforge.net/lists/listinfo/wix-users
Continue reading on narkive:
Loading...