phaedrus30
Posts: 12
Joined: Wed Jun 26, 2013 3:42 am

Conditionally install SSL?

Hi guys,

When we install our software we currently just support HTTP binding on our installed website in IIS, but the software does support HTTPS. If HTTPS is required then the user has to configure the system manually after installation is completed, by installing a certificate, adding an SSL binding to the website, and updating the Web.config file for the application.

We would like to automate this process now if possible via the installer. I can see that it is possible to support an HTTPS binding in IIS, and to ask for a PFX certificate from the user as well, which meets our main requirements, however there are some requirements that I can't find an answer to:

- Is it possible to declare an HTTPS binding in Advanced Installer that is conditional on some other installer property? We don't want to force all installations to use SSL, so the SSL binding and PFX installation should only happen if the user has selected HTTPS as their preferred protocol.

- Additionally we may want to disable the HTTP binding as well, so this would also need to become conditionally installed based on installer properties as well, is this possible?

- Is the certificate automatically uninstalled as well? Or does it remain on the computer?

Thanks!

Sam
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Conditionally install SSL?

Hello Sam,

We apologize for our delayed reply.
- Is it possible to declare an HTTPS binding in Advanced Installer that is conditional on some other installer property? We don't want to force all installations to use SSL, so the SSL binding and PFX installation should only happen if the user has selected HTTPS as their preferred protocol.
Unfortunately, we don't have dedicated supported for this. As a workaround you can try to develop and use your own custom action which will conditionally install an HTTPS binding.
- Additionally we may want to disable the HTTP binding as well, so this would also need to become conditionally installed based on installer properties as well, is this possible?
This is not possible either.
- Is the certificate automatically uninstalled as well? Or does it remain on the computer?
No, the installed certificate is not uninstalled as well on product removal.

If you have any other question just let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
louigie
Posts: 2
Joined: Thu Aug 03, 2017 10:47 am

Re: Conditionally install SSL?

Good day

Just want to know if there has been any changes on this since the date of this post. The conditional SSL and not binding to http parts

Thanks
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Conditionally install SSL?

Hello,

No, I'm afraid not. To conditionally install the bindings you could create two identical web sites in "IIS" page and edit their HTTP bindgins as you want. Then you can conditionally install the web site with the desired bindings. Just use the "Install condition" field of the web site entries.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”