27 Jun 2008

How to allow self signed certificates using rootinstall.asp



  1. During the default installation of Certificate Server, a shared folder is generated to store the root certificate file. The default location of this folder is C:\Certconfig. In this folder, locate the root certificate file. The default naming standard is as follows:
    servername.domain.com_name_of_certificate_server.crt
    If you cannot find the root certificate file, search your hard drives for all files that end in .crt. Double-click each .crt file that is returned in the search and view its details to confirm that its serial number is the same as the serial number of the root certificate that issued your Web server certificate.

    To view the serial number of your Web site's root certificate, securely browse to your Web site (that is, use the https:// protocol) and double-click the padlock icon in the lower right corner of your browser. Click the Certification Path tab and double-click the top certificate. The serial number of this certificate should match the root certificate that your search returned.

  2. Export the root certificate (.crt) file to a Base64 root certificate (.cer) file. To do this, follow these steps:
    1. In Windows Explorer, double-click the root certificate file.
    2. Click the Details tab and select Copy to file to start the Certificate Manager Export Wizard.
    3. On the second screen of the wizard select Base64, and on the third screen provide a path and file name for the certificate.NOTE: This is the file that you use in the sample ASP code that is provided in this article.

    4. Click Next and then click Finish.
  3. Modify line 11 of the following code to point to the Base64 root certificate file that you created in step 2.
  1. Save the modified code as Rootinstall.asp to your Web site location. By default this is \Inetpub\Wwwroot.
  2. Browse to the Rootinstall.asp file from a client browser. If your root certificate is not already in the store, you are prompted to install it.
  3. Click OK. The certificate is automatically installed into the Trusted Root Store on the client browser.
Thanks MS!

0 comments: