Setting up a website to use SSL
Secure Sockets Layer (SSL) is a protocol that uses certificates and keys to encrypt data while it travels over a network. This way, private information is kept secret between two parties. WiX gives us both a way to install certificates to the keystores of the target machine and to associate one of those certificates with our website during installation to enable SSL.
In this recipe, we'll create a self-signed certificate and install it to the Trusted Root Certification Authorities and Personal keystores. We'll then install a website and bind it to the certificate. In a real-world scenario, you will have your certificate signed by a globally trusted certificate authority. However, for demonstration purposes, self-signing works best.
Getting ready
To prepare for this recipe, perform the following steps:
Create a new setup project and name it
SecureWebsiteInstaller
.Add
IIsExtension
to the project by right-clicking on the References node in Solution Explorer and...