The certification authority service does not start and throws the error message "The revocation function was unable to check revocation because the revocation server was offline. 0x80092013 (-2146885613 CRYPT_E_REVOCATION_OFFLINE)"

Assume the following scenario:

  • A certification authority is implemented in the network.
  • The certification authority service does not start.
  • When trying to start the certification authority service, you get the following error message:
The revocation function was unable to check revocation because the revocation server was offline. 0x80092013 (-2146885613 CRYPT_E_REVOCATION_OFFLINE)

Error dialog "Microsoft Active Directory Certificate Services": 0x80092013 (-2146885613 CRYPT_E_REVOCATION_OFFLINE)

A corresponding error message can also be found in the Event Viewer (event no. 100 ) of the certification authority:

Active Directory Certificate Services did not start: Could not load or verify the current CA certificate.  ADCS Labor Issuing CA 3 The revocation function was unable to check revocation because the revocation server was offline. 0x80092013 (-2146885613 CRYPT_E_REVOCATION_OFFLINE).

Event 100, CertificationAuthority: Active Directory Certificate Services did not start, 0x80092013 CRYPT_E_REVOCATION_OFFLINE

Cause

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.

In this case, the subordinate issuing certification authority was unable to check the revocation status of its currently used certification authority certificate.

This error occurs only with the currently used certification authority certificate. The certification authority always uses the last of the installed certificates for issuing certificates. This error should not occur with the previous certification authority certificates.

The cause can usually be determined with the Enterprise PKI management console (pkiview.msc).

Enterprise PKI (pkiview): ADCS Labor Issuing CA 1 with DeltaCRL Location #1 "Unable To Download", #2 "Expired" and OCSP Location #1 "Error"

Enterprise PKI management console (example)

In such a case, the certificate revocation list (CRL) of the higher-level certification authority is usually not available (offline, blocked by a firewall), or it has expired (in both cases, the error code CRYPT_E_REVOCATION_OFFLINE is generated).

Solution: Issue and publish the CRL of the higher-level certification authority

As a rule, the problem can be solved by issuing and publishing a new certificate revocation list on the higher-level certification authority.

It should also be ensured that the CRL can actually be retrieved, i.e. name resolution and firewall rules , among other things, should be checked.

Workaround: Disable CRL checking for the certification authority

It is not possible in all cases to restore the availability of the revocation status information in time, for example, because one depends on an external entity.

As a temporary solution, CRL checking for the certification authority can be deactivated in such cases. To do this, the flag CRLF_REVCHECK_IGNORE_OFFLINE must be set on the certification authority.

The preferred solution should always be to eliminate the cause of the failed revocation information retrieval.

First, the following command line command should be used to view the current configuration:

certutil -getreg CA\CRLFlags

Command prompt: certutil -v -getreg CA\CRLFlags shows CRLFlags REG_DWORD = 2 (CRLF_DELETE_EXPIRED_CRLS)

In the example above, the CRLF_REVCHECK_IGNORE_OFFLINE flag is indented and set in brackets, which means that it is not active. It can be set with the following command line command:

certutil -setreg CA\CRLFlags +CRLF_REVCHECK_IGNORE_OFFLINE

Command prompt: certutil -setreg CA\CRLFlags +CRLF_REVCHECK_IGNORE_OFFLINE changes the value to a (10)

Afterwards, the certification authority service must be restarted.

The flag can be removed again with the following command:

certutil -setreg CA\CRLFlags -CRLF_REVCHECK_IGNORE_OFFLINE

Is there a solution for the case that the certification authority certificate does not contain any revocation information?

In this case, too, the preferred option is to clarify why the certification authority certificate does not contain any revocation information and to resolve the underlying cause.

Under certain circumstances, you may receive a certificate from the higher-level certification authority that has no revocation information - i.e. no reference to a certificate revocation list/CRL or an Online Responder (OCSP) .

In this case, the flag CRLF_REVCHECK_IGNORE_NOREVCHECK can be activated in the same way.

External sources