How to Create SSL Secure Server (HTTPS) in Local IIS?





5.00/5 (6 votes)
This tip is helpful to create and manage self-signed SSL certificate for local IIS.
Introduction
This tip is helpful to create and manage self-signed SSL certificate for local IIS. This tip is also helpful to create a secure server in local IIS.
Background
Before you go through this tip, you should have knowledge in IIS.
Steps to Create SelfSSL Certificate
- Download and install Internet Information Services (IIS) 6.0 Resource Kit Tools (Don't bother, it will work for IIS 5.0). Click here to download.
- Go to Start-> IIS Resources ->SelfSSL -> SelfSSL.exe.
- Use the following command to create SSL certificate for Default Web Site in IIS.
- SELFSSL [/T] [/N:cn] [/K:key size] [/S:site id] [/P:port]
Note
- /T -> Adds the self-signed certificate to "Trusted Certificates" list. The local browser will trust the self-signed certificate if this flag is specified.
- /N:cn -> Specifies the common name of the certificate. The computer name is used if not specified.
- /K:key size -> Specifies the key length. Default is 1024.
- /V:validity days -> Specifies the validity of the certificate. Default is 7 days.
- /S:site id -> Specifies the id of the site. Default is 1 (Default Site).
- /P:port -> Specifies the SSL port. Default is 443.
- /Q -> Quiet mode. You will not be prompted when SSL settings are overwritten.
- E.g. -> SELFSSL /T /N:localhost /K:1024 /S:1 /P:443 /V:365 (for 1 year)
Steps To Remove a SelfSSL Certificate
- Open IIS 5.1.
- Right click on Default Web Site and Select Properties.
- Then click on Directory Security tab.
- Click on Server Certificate button and follow as shown in the following images:
-
-
-
- Click Yes on Confirmation Dialogue (if any).
-
Steps To Assign an Existing SSL Certificate
- Open IIS 5.1.
- Right click on Default Web Site and Select Properties.
- Then click on Directory Security tab.
- Click on Server Certificate button and follow as shown in the following images:
-
-
-
-
-
Conclusion
I think this tip will be very helpful for software developers. Thank you.