Certificate Enrollment Requires a Custom Protocol

When you request a certificate using the Certificate MMC snap-in or the certificate auto-enrollment mechanism, the request fails. Of course we assume here that the CA is started and you have sufficient permissions to request a certificate. This issue occurs because DCOM is required to acquire a certificate. However, for access rules a default “Enable strict RPC compliance” setting is configured on each RPC rule. With this setting in place, DCOM traffic is blocked. 

To workaround this issue without using an access rule that allows all outbound protocols between the host requesting the certificate (the source) and the CA (the destination), you can apply the following steps:

  • On the CA, configure the RPC application or DCOM endpoint to use a custom TCP protocol port as a static port.
  • On the ISA, turn off the “Enable strict RPC compliance” setting on the RPC access rule.
  • On the ISA, create the custom protocol for outbound use.
  • On the ISA, create an access rule to allow the custom protocol between the required source and destination.

On the CA, configure the RPC application or DCOM endpoint to use a custom protocol port as a static port.

The CA is primarily implemented as a DCOM application. By default, DCOM uses high-numbered TCP ports to respond to client requests. With the DCOM Configuration MMC Snap-In, Certificate Services can be enforced to use a custom TCP port.

  1. While logged on to the issuing CA, from a command-line prompt, run the following command:
    dcomcnfg.exe
  2. In the left pane of the Component Services MMC Snap-In, expand Component Services, Computers, My Computer, and then DCOM Config.
  3. In the right pane, select CertSrv Request.
  4. On the Action menu, click Properties.
  5. On the Endpoints tab, click Add.
  6. Select Use static endpoint, enter an unused TCP port number, for example 789 (my choice), and then click OK twice.
  7. Close the MMC Snap-In.
  8. Restart the certification authority service through the MMC Snap-In or by the following commands:
    net stop certsvc & net start certsvc

CertEnroll01

To undo this change at a later stage, remove the added entry from the list of endpoints.

On the ISA, turn off the “Enable strict RPC compliance” setting on the RPC access rule.

If ISA Server is requesting the certificate, disable the “Enforce strict RPC compliance setting” on the system policy rule.

  1. To do this, on the Firewall Policy tab of ISA Server Management, click Edit System Policy on the Tasks tab.
  2. Select the Active Directory group in the Configuration Groups list.
  3. On the General tab, clear the Enforce strict RPC compliance checkbox.

CertEnroll02 

If a host is requesting the certificate from another network through ISA Server, do the following: in the Firewall Policy tab of ISA Server Management, right-click the access rule allowing the traffic, and then click Configure RPC protocol. On the Protocol tab, clear the Enforce strict RPC compliance checkbox.

On the ISA, create the custom protocol for outbound use.

I assume everybody is able to accomplish this task 😉  

My choice was to use TCP port 789 outbound for the CertSrv Request protocol definition.

CertEnroll03

On the ISA, create an access rule to allow the custom protocol between the required source and destination.

Again, I don’t think that creating an access rule requires much explanation. The important thing to note is that if ISA Server is requesting the certificate, the rule must apply to all users. Obviously the source is Local Host in this case and the destination can be further restricted to only the computer object representing the CA.

CertEnroll04

For publishing rules ISA Server blocks DCOM traffic, and as far as I know this setting cannot be modified. Therefore, if a host is requesting the certificate from another network through ISA Server, you must have a route relationship between the required source and destination, and create the appropriate access rule.

 

For more information, check out the following resources:

 

HTH,
Stefaan

About The Author

Leave a Comment

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Scroll to Top