Skip to main content

Create and Install SSL Certificate in IIS



You have created an application say for example a web service and want to secure it but wondering how to create and install SSL certificate in order to test it?, then do not worry; just read this article :)
So before proceeding, let’s make sure you have Internet Information Services (IIS) 6.0 Resource Kit Tools installed on your machine.


You can download this from here: http://www.microsoft.com/downloads/details.aspx?familyid=56FC92EE-A71A-4C73-B628-ADE629C89499&displaylang=en Size: 5.8 MB.

Once you finish downloading, install it. Now go to Start menu and look for “IIS Resources” and under this, look for “Self SSL”. Run the exe (which looks similar to command prompt).

The syntax of the command is:
SelfSSL [/T] [/N:CN] [/K:key Size] [/S:site id] [/P:port]

Now type the following command:
selfssl.exe /T /N:CN="your machine name" /K:1024 /V:7 /S:1 /P:443

Just specify your machine’s name. You can also change the parameters if required.
Meaning of these parameters is as follows:

/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.
You can verify your newly installed certificate from IIS. It will look similar to the one shown above.
Oh! yea, please do not forget to leave a comment on this post.

Comments

Popular posts from this blog

Hiding / Disabling Maximize and/or Minimize Box in WPF

After trying my hands on the WPF, I realized that I could convert my existing Windows Forms applications into rich looking WPF applications. The task of migration was definitely not easy. During the course of migration, I came across many hurdles and seemed it was impossible to achieve in WPF. But thanks to the msdn help, which made a lot of things easier :-) Since I was converting my existing application, I started looking for the similar features in WPF. The problem I faced was in the initial phase itself where I wanted to disable MaximizeBox button in WPF. This posed a challenge to me since I had no clue as to how to achieve this. After searching the net for a while, I got a solution which I will share with you all to make your life easier. Disabling Maximize Box Button on the WPF Window: This can be done as follows: Put this piece of code above the main class. internal static class WindowExtensions {      [DllImport("user32.dll")]      internal exte...

Add, Delete and Move controls at runtime.

In this article you will learn how to: Add or delete controls at runtime. Access controls with the indexer. Create control collection using Hash Table. Download full source code. To start with, create a windows application project and add a class to it. We will create a button array so name it as “ButtonArray.cs”. Add the following code to it: Class “ButtonArray” is inherited from the Hash table, so it will be easy for us to add buttons in the collection. Let’s have a look into the “AddButton” method. In this method, we create an instance of a button with the necessary properties and add it to the hash table as well as to the form’s control collection. Each time the control is added in the hash table with its unique key. This helps us to access the controls when required. Now we’ll see how to remove control from the hash table and form’s control collection. In order to remove the control, just pass the key. That’s simple! Isn’t it? :-) Ok! That w...

Resistance Calculator mobile app for 4, 5 and 6 Band

  Resistance Calculator allows you to quickly find out the ohmic values of a 4 Band, 5 Band and 6 Band color coded resistors.  The UI is very intuitive and simple to use. Just tap on the desired resistor and start selecting colors from the bottom color strip, and the app will show you the corresponding ohmic values of the selected color bands.  The app retains the selection of your colors, so that you can have a quick look each time you open the app. Features: - Simple and easy to use user interface. - Quickly find out the ohmic values of resistors without the need for multiple taps. - Supports 3, 4 and 5 band color coded resistors.