NOTE: The requirement to install the Certificate Authority Certificate only exists with non-trusted CAs, such as Microsoft Certificate Server.
- 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.
- Export the root certificate (.crt) file to a Base64 root certificate (.cer) file. To do this, follow these steps:
- In Windows Explorer, double-click the root certificate file.
- Click the Details tab and select Copy to file to start the Certificate Manager Export Wizard.
- 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.
- Click Next and then click Finish.
- Modify line 11 of the following code to point to the Base64 root certificate file that you created in step 2.
<TITLE>Installing A Root Certificate</TITLE>
<BR>Root Certificate Authority Installation
Set fs = CreateObject("Scripting.FileSystemObject")
Set MyFile = fs.OpenTextFile("c:\certificates\base64.cer", 1)
Output = ""
Do While MyFile.AtEndOfStream <> true
line = Chr(34) & MyFile.ReadLine & Chr(34)
If MyFile.AtEndOfStream <> true then
line = line & " & _" & Chr(10)
Output = Output & line
Set MyFile = Nothing
Set fs = Nothing
on error resume next
Dim Str, CEnroll
Set CEnroll = CreateObject("CEnroll.CEnroll.1")
Str = <% Response.Write Output %>
Set CEnroll = Nothing
- Save the modified code as Rootinstall.asp to your Web site location. By default this is \Inetpub\Wwwroot.
- 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.
- Click OK. The certificate is automatically installed into the Trusted Root Store on the client browser.
ID do Artigo: 297681 - Última Revisão: 09/07/2009 - Revisão: 1