Book Image

WiX Cookbook

By : Nicholas Matthew Ramirez
1 (1)
Book Image

WiX Cookbook

1 (1)
By: Nicholas Matthew Ramirez

Overview of this book

Table of Contents (20 chapters)
WiX Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

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:

  1. Create a new setup project and name it SecureWebsiteInstaller.

  2. Add IIsExtension to the project by right-clicking on the References node in Solution Explorer and...