Compartir a través de


Copy the CA Certificate and CRL to the Virtual Directory

 

Updated: March 16, 2016

Applies To: Windows Server 2012

You can use this procedure to copy the Certificate Revocation List and Enterprise root CA certificate from your certification authority to a virtual directory on your Web server, and to ensure that AD CS is configured correctly. Before running the commands below, ensure that you replace directory and server names with those that are appropriate for your deployment.

To perform this procedure you must be a member of Domain Admins.

To copy the certificate revocation list from CA1 to WEB1

  1. On CA1, run Windows PowerShell as an Administrator, and then publish the CRL with the following command:

    Type certutil –crl, and then press ENTER.

    To copy the CA certificate to the file share on your Web server, type copy C:\Windows\system32\certsrv\certenroll\*.crt \\WEB1\pki, and then press ENTER.

    To copy the certificate revocation lists to the file share on your Web server, type copy C:\Windows\system32\certsrv\certenroll\*.crl \\WEB1\pki, and then press ENTER.

  2. To restart AD CS, type Restart-Service certsvc, and then press ENTER.

  3. To verify that your CDP and AIA extension locations are correctly configured, type pkiview.msc, and then press ENTER. The pkiview Enterprise PKI MMC opens.

  4. Click your CA name. For example, if your CA name is corp-CA1-CA, click corp-CA1-CA. In the details pane, verify that the Status value for the CA Certificate, AIA Location #1, and CDP Location #1 are all OK:

    Important

    If Status for any item is not OK, do the following: Verify that you have entered the correct locations for the CDP and AIA on the CA Extensions tab. Ensure that there are no extra spaces or other characters in the locations that you have provided. Verify that you copied the CRL and CA certificate to the correct location on your Web server, and that the location matches the location you provided for the CDP and AIA locations on the CA. Verify that you correctly configured permissions for the virtual folder where the CA certificate and CRL are stored.