SSL – How to increase your CSR key size on Microsoft IIS 5 or IIS 6 without removing the production certificate?

How to increase your CSR key size on Microsoft IIS 5 or IIS 6 without removing the production certificate?

Resolution

In line with industry good practice, Comodo requires that all types of SSL certificates are created
with a CSR that has a key size of 2048-bits or greater. This requires care in Microsoft IIS when
renewing a certificate that has a key size of 1024-bits.

When renewing an already existing certificate, Microsoft IIS will retain all of the details of the
currently installed certificate. This includes the key size which may be set to 1024-bits. In order
to get the option to change the key size in IIS, you must remove the certificate which has the
effect of taking down your website on port 443 (https://).

This article describes an alternate method to increase the key size of your certificate without any
downtime to your website by creating a temporary website.

Creating a Temporary Website

We will create a temporary website that will, at this end of the process, have a status of
Stopped. Creating this website and having it stopped in IIS poses no security risks and will not
affect your other websites.

  1. Open up IIS. This can be found in the Administrative Tools in Control Panel.
  2. In the Internet Information Services (IIS) Manager window, right-click on the Web
    Sites folder and select New and Web Sites from the drop down menu.
  3. The Web Site Creation Wizard willl appear. In that new window, click on Next.
  4. On the next screen, type in “Temporary” into the Description field. Once you have done
    that, click on Next.
  5. At the IP Address and Port Settings screen, leave the defaults and click on the Next
    button.
  6. In the Web Site Home Directory screen, click on the Browse folder and navigate to the
    Inetpub folder (or a folder of your choosing). Once selected, click on the Next button.
  7. The next screen shows the Web Site Access Permissions. Uncheck all of the boxes
    and click on Next.
  8. At the final screen click on the Finish button.

Back in the Internet Information Services (IIS) Manager window, right click on the
Temporary website and select Stop from the drop down menu.

Creating a CSR for Temporary

Here follows the process for creating a CSR as you would for a normal certificate on the new
Temporary website that you created in the section above. If you are familiar with this process,
you can skip to next section.

  1. Open up IIS. This can be found in the Administrative Tools in Control Panel.
  2. Right-click on the temporary website and click on Properties from the drop down menu.
  3. A new window will appear. In that new window, click on the Directory Security tab at
    the top.
    In the same window, you will see three sections. The bottom section named Secure
    communications has three buttons.
  4. Click on the Server Certificate… button. The IIS Certificate Wizard appears.
  5. Select the circle, Create a new certificate. and click on Next.
  6. On the next step on the Wizard, select the circle, Prepare the request now, but send
    it later and click on Next.
  7. At the next step in the Wizard, enter in a Name for your certificate. In the field where
    you see Bit length: select 2048 from the drop down. Leaving the other two check boxes
    unchecked, select Next.
  8. On the next screen, enter in the full legal name of the company which the certificate
    belongs into the Organization field. In the Organizational unit field, enter in the
    department of the organization, such as ‘IT’ or “Marketing”. Click on Next.
  9. At the next screen, you will need to enter in your FQDN (fully qualified domain name) of
    your website in the field named Common name. It looks like “secure.example.com” or
    “example.com”. Click on Next.
  10. On the next screen, you will need to select the country of your organization from the
    Country/Region drop down. You will then need to type in the State/province of that
    country along with city within that state within the City/locality field. Once you have
    done that, click on Next.
  11. At the next step of the Wizard, you will need to specify where to save the CSR text file
    that will be created. To change the location, you should click on the Browse… button.
    After you have selected a location, click on the Next button.
  12. At the final screen, you will see a summary of all the certificate details that you have
    created. Click on Next to generate the CSR file.
    Note: When you have generated a CSR file, you will have a pending request held for this website. If this pending request is deleted before a certificate response can be installed, the set of private keys that were created will be deleted as well. This will render the CSR file and the certificate response useless, including during installation.
  13. Open the newly created CSR file using notepad. Select all the contents, copy and then paste into the ordering site at www.pkipartner.com.

Installing the certificate onto Temporary

  1. Open up IIS. This can be found in the Administrative Tools in Control Panel.
  2. Right-click on the Temporary website and click on Properties from the drop down menu.
  3. A new window will appear. In that new window, click on the Directory Security tab at
    the top. In the same window, you will see three sections. The bottom section named Secure communications has three buttons.
  4. Click on the Server Certificate… button.
  5. A wizard appears. Click on Next.
  6. On the next screen, select the option, Process the pending request and install the certificate. Click on Next.
    Note: If you do not see this option, this could mean that the CSR may have been deleted. If this is the case, then the certificate file is cannot be used.
  7. At the next step of the wizard, you must click on browse and navigate to the .crt that was
    supplied to you by PKI Partner.
    Note: By default, the IIS Certificate Wizard looks for files with the extension of .cer. In order for it to accept the .crt file, you will need to drop the File of type: field down to look for All files and the .crt file should appear. Once you can see it, select it.
  8. Click on Next.
  9. On the next screen, leave the default to port 443. Click on Next.
  10. You should now see a summary screen. When you have finished looking at the summary,
    you should click on Next.
  11. At the final screen, click on Finish.

Assigning the Stronger Certificate

  1. In IIS, right-click on the production website that has the 1024-bit certificate installed and then click on Properties from the drop down menu.
  2. A new window will appear. In that new window, click on the Directory Security tab at
    the top. In the same window, you will see three sections. The bottom section named
    Secure communications has three buttons.
  3. Click on the Server Certificate… button.
  4. A wizard appears. Click on Next.
  5. On the next screen, select the option, Replace the current certificate. Click on Next.
    Important Note: If you do not receive this option, it may be possible that you have an already pending request for this website. In order to have the Replace the current certificate option available, you will need to delete the pending request on this website.
  6. You should see a list of certificates which contains the certificate you have installed on the Temporary website. Select the newly installed certificate that contains a key size of 2048-bits from this list. Once selected, click on Next.
  7. IIS will display the new replacement certificate’s details. Verify these details and then
    click on Next.
  8. Click on the Finish button on the next screen.
  9. Back in the Properties window, click on the OK button. The certificate on your website has been updated with the stronger 2048-bit certificate with no downtime.
  10. The final step of this article is to delete the Temporary website that you created in the beginning. To do this, right-click the Temporary website from IIS and select Delete from the drop down menu. Click on Yes at the, “Are you sure you want to delete this item?”

Comments are closed.