Requesting a certificate for a domain controller fails with error message "The RPC server is unavailable. 0x800706ba (WIN32: 1722 RPC_S_SERVER_UNAVAILABLE)"

Here's the scenario:

  • Requesting a certificate for a domain controller fails.
  • On the certification authority, the certificate request is logged in the failed requests. The error message reads:
The RPC server is unavailable. 0x800706ba (WIN32: 1722 RPC_S_SERVER_UNAVAILABLE)

Dialog "Failed to install one or more certificates": "ADCS Labor Kerberos Authentication", status Request denied, 0x800706ba RPC_S_SERVER_UNAVAILABLE

The error is also logged on the certification authority with event no. 53 .

Active Directory Certificate Services denied request 165405 because The RPC server is unavailable. 0x800706ba (WIN32: 1722 RPC_S_SERVER_UNAVAILABLE). The request was for INTRA\DC01$. Additional information: Denied by Policy Module

Event 53, CertificationAuthority: request 165405 denied because "The RPC server is unavailable." 0x800706ba, Denied by Policy Module

The certificate request is also entered in the list of failed requests in the certification authority, i.e. the transmission of the certificate request from the domain controller to the certification authority obviously worked, but the certification authority cannot process it.

Certification authority console: request 165405 with Request Status Code "The RPC server is unavailable." 0x800706ba

Possible 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.

The Kerberos Authentication certificate template and certificate templates for domain controllers derived from it contain the flag CT_FLAG_SUBJECT_ALT_REQUIRE_DOMAIN_DNS .

This flag causes the certification authority to enter the fully qualified domain name (FQDN) and the NETBIOS name of the requester in the Subject Alternative Name (SAN) extension of the certificate, and requires that the certification authority can talk to the requesting domain controller via NTLM.

This communication takes place via TCP port 445, which must be opened accordingly in the firewall configuration of the network.

The error will also occur if NTLMv2 was disabled via Group Policy.

Testing

It is relatively easy to check whether this is the cause of the problem using the PowerShell command Test-NetConnection, which must be run from the certification authority.

Test-NetConnection -ComputerName {Name-des-beantragenden-DomainControllers} -Port 445

PowerShell: Test-NetConnection to DC01.intra.adcslabor.de, port 445: TcpTestSucceeded True

The command must return True for the RPC Named Pipes connection to work.

PowerShell: Test-NetConnection to DC01.intra.adcslabor.de, port 445: "TCP connect to (192.168.1.133 : 445) failed", TcpTestSucceeded False

Trivia

The flags set for a certificate template can be viewed with the following command:

certutil -v -template {Name-der-Zertifikatvorlage}

certutil output: TemplatePropSubjectNameFlags = 8400000 with CT_FLAG_SUBJECT_ALT_REQUIRE_DOMAIN_DNS and CT_FLAG_SUBJECT_ALT_REQUIRE_DNS

External sources