Configuring the certification authority to a static port (RPC endpoint)

In the default configuration, the certification authority's certificate request interface is configured to negotiate dynamic ports for the incoming RPC/DCOM connections (for more details, see the article "Firewall rules required for Active Directory Certificate Services ").

Network protocolDestination portProtocol
TCP135RPC Endpoint Mapper
TCP49152-65535RPC dynamic ports

This configuration is not feasible in every enterprise environment. Often there are restrictive firewall rules that do not allow the use of dynamic network ports.

In such a case, the certification authority must be configured to a static port.

Procedure

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.

Configuration is done through the Component Services Management Console (dcomcnfg).

Dialog "Run": dcomcnfg entered in the "Open" field

In the console, navigate to "Component Services" - "Computers" - "My Computer" - "DCOM Config". Look there for the entry "CertSrv Request". It is edited by right-clicking and then selecting "Properties".

Component Services, DCOM Config: context menu "Properties" of "CertSrv Request"

In the "Endpoints" tab, click on "Add..." to add a new endpoint.

"CertSrv Request Properties", "Endpoints" tab: "Add" button (marked in yellow)

Here you select the option "Use static endpoint" and assign a network port.

Dialog "Select DCOM protocol and endpoint": Connection-oriented TCP/IP, "Use static endpoint" with port 4711 (marked in yellow)

For the settings to take effect, the certification authority service must be restarted.