Creating a Self-signed SSL Certificate

To create a self-signed SSL certificate, do the following.

Prerequisites

Navigation

  1. Click Start > All Programs > Visual Studio  > Visual Studio Tools > Visual Studio Command Prompt.

Instructions

  1. On the Visual Studio command prompt, enter the following command:

    Makecert -sv SignRoot.pvk -cy authority -r signroot.cer -a sha1 -n "CN=[your certification name]" -ss my -sr localmachine

  2. To move your SSL certificate from Personal folder to Trusted Root Certificate Authorities folder, complete the following steps:
    1. In the Visual Studio command prompt, enter mmc.
    2. On the Console Root window, click File > Add/Remove Snap-in.
    3. On the Add or Remove Snap-ins window, select Certificates, and click Add.
    4. On the Certificates snap-in window, click Computer account.
    5. On the Select Computer window, click Local computer.
    6. On the Console Root window, click the Right arrow to expand Certificates (Local Computer)
    7. Drag your SSL certificate from the Personal folder to the Trusted Root Certificate Authorities folder.
  3. To give your SSL certificate URL name, enter the following command:

    Makecert -iv SignRoot.pvk -ic signroot.cer -cy end -pe -n CN="SSL-Url-Name" -eku 1.3.6.1.5.5.7.3.1 -ss my -sr localmachine -sky exchange -sp "Microsoft RSA SChannel Cryptographic Provider" -sy 12

More Information