Publishing a certificate revocation list (CRL) fails with error message "The directory name is invalid. 0x8007010b (WIN32/HTTP: 267 ERROR_DIRECTORY)"

Assume the following scenario:

  • A new certificate revocation list (CRL) is created on the certification authority.
  • Publishing fails with the following error message:
The directory name is invalid. 0x8007010b (WIN32/HTTP: 267 ERROR_DIRECTORY)

Sometimes it is necessary for a certificate issued by a certification authority to be taken out of circulation even before its expiration date. To make this possible, a certification authority maintains a certificate revocation list. This is a signed file with a relatively short expiration date, which is used in combination with the certificate to check its validity.

Error dialog "Microsoft Active Directory Certificate Services": "The directory name is invalid. 0x8007010b (WIN32/HTTP: 267 ERROR_DIRECTORY)"

Further details can be found in the Event Viewer. Depending on the CRL type, the certification authority will log the events 65 , 66 , 74 or 75 .

Event 65, CertificationAuthority: could not publish a Base CRL to adcsweb01.fabrikam.com, share CertData. The directory name is invalid. 0x8007010b

Causes

Do you know TameMyCerts? TameMyCerts is an add-on for the Microsoft certification authority (Active Directory Certificate Services). It extends the function of the certification authority and enables the application of rule sets to realize the secure automation of certificate issuance. TameMyCerts is unique in the Microsoft ecosystem, has already proven itself in countless companies around the world and is available under a free license. It can be downloaded via GitHub and used free of charge. Professional maintenance is also offered.

Basically, various causes come into question:

  • The configured directory is not shared.
  • The configured path is not correct.

In this case, the directory was not configured correctly. To find out which directories are configured, see the Extensions tab in the Certificate Services Management Console (certsrv.msc). The option "Publish to this location" determines whether a CRL should be published to this directory.

Properties of "ADCS Labor Issuing CA 1", "Extensions" tab, CDP: the selected location on adcsweb01.fabrikam.com, share CertData, with placeholders

It is not possible to edit the entry directly in the certification authority management console. It can only be deleted and recreated. However, you can edit the configuration in the registry of the certification authority service. The setting is located in the "CRLPublicationURLs" value under the following path:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\CertSvc\Configuration\{Name-der-Zertifizierungsstelle}\ 

Dialog "Edit Multi-String": value CRLPublicationURLs with the entries 65, 79, 6 and 1, entry 1 points to web01.intra.adcslabor.de, share CertData

After changing the configuration, the certification authority service must be restarted for the changes to take effect.