Copy the CA Certificate and CRL to the Virtual Directory
Applies To: Windows Server (Semi-Annual Channel), Windows Server 2016
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
On CA1, run Windows PowerShell as an Administrator, and then publish the CRL with the following command:
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.
To restart AD CS, type
Restart-Service certsvc, and then press ENTER.
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.
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.
The following illustration depicts the pkiview results pane with a status of OK for all items.
If Status for any item is not OK, do the following:
- Open the share on your Web server to verify that the certificate and certificate revocation list files were successfully copied to the share. If they were not successfully copied to the share, modify your copy commands with the correct file source and share destination and run the commands again.
- 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.