IIS: Create & Configure Self-Signed Certificate in IIS 7 or Later
In past one of my friends asked me how to configure self-signed SSL certificate in local IIS 7 or later. Steps for creating & configuring SSL in IIS 7 or later is pretty much straight forward. Before few days I received same comment on ASP.NET MVC Action Filter Series that how to setup SSL in local IIS websites. So here in this post, we are going to address it as part of IIS administration & configuration posts series. Yes yes this post is going to be very basic and straight forward few clicks configuration but you can stay tuned for more post in next week and later.
Steps here mentioned are based on IIS 8, but it would be almost same on IIS 7 as well. Ok so to get started open IIS and select Server Certificates feature.
It will display list of all installed Server Certificate on web server.
To create new self-signed certificate, click on Create Self-Signed Certificate... in action pane.
It will open dialog box where you can specify friendly name for server certificate and certificate store for newly created SSL certificate.
Specify name of the certificate, certificate store and click on OK. So we are half way done, we have created Self-Signed Certificate with IIS, but still half way to go. After creating certificate, we need to bind it with websites then only we will be able to browse local IIS website with HTTPS.
To bind websites with this certificate, select website in IIS and right click on it and select Edit Bindings...
It will open Site Bindings dialog where we can see binding information for selected websites. By default you will find one HTTP binding listed here.
Click on Add button to Add new binding for selected website.
Here, select binding type HTTPS and select newly created SSL certificate from drop down and click on OK. So we have added HTTPS binding to website which uses self-signed certificate in local IIS. To verify open and browse https://localhost.
Hope this quick post would be helpful and for more post on IIS checkout this index page.