Windows PKI blog

News and information for public key infrastructure (PKI) and Active Directory Certificate Services (AD CS) professionals

Firewall Rules for Active Directory Certificate Services

Firewall Rules for Active Directory Certificate Services

  • Comments 13
  • Likes

 

 Below is a list of ports that need to be opened on Active Directory Certificate Services servers to enable HTTP and DCOM based enrollment

 The information was developed by Microsoft Consultant Services during one of our customer engagements

Protocol

Port

From

To

Action

Comments

Kerberos

464

Certificate Enrollment Web Services

 

 

Domain Controllers (DC)

Allow

Source Certificate Enrollment Web Services

Destination: DC

Service: Kerberos (network port tcp/464)

LDAP

389

Certificate Enrollment Web Services

 

 

Domain Controllers (DC)

Allow

Source Certificate Enrollment Web Services

Destination: DC

Service: LDAP (network port tcp/389)

LDAP

636

Certificate Enrollment Web Services

 

 

Domain Controllers (DC)

Allow

Source Certificate Enrollment Web Services

Destination: DC

Service: LDAP (network port tcp/636)

DCOM/RPC

Random port above port 1023

·       Certificate Enrollment Web Services

·        All XP clients requesting certs

 

CA

Allow

Please see for details on RPC/DCOM configuration: http://support.microsoft.com/kb/154596/en-us

HTTPS

443

All clients requesting certs

Certificate Enrollment Web Services

 

 

Allow

Source: Windows 7 client

Destination:

 

Service: https (network port tcp/443)

Certificate Enrollment Web Services

Comments
  • Port number without specified protocol is useless. Is it TCP or UDP ?

  • Just a minor correction. Should DCOM/RPC state: "Random port above port 1023" rather than "1024". I believe RPC uses >=1024 (includes 1024).

    Otherwise, good summary.

    Siki

  • Hello!

    Doesn't RPC TCP 135 (RPC Endpoint Mapper) also have to be open? How else can clients find out what random port above 1023 is being used at any given time?

    It is possible to set the random port being used by the CA server to a fixed value (with DCOM, Static Endpoint), is this supported by Microsoft?

    I love this blog, keep it updated!

    Sincerly Yours

    Tom Aafloen, Sweden

  • Thanks a lot for your article. Not found out There !!!

  • When did kerberos start using tcp/440?

    My understandin was it used tcp/88, upd/88 and tcp/464.

  • I just removed port 440 based on the result of an internal conversation about that port not being needed.

  • The table data seems to only provide information for Web Enrollment, what ports are required between a requesting host and an Enterprise CA?

    Not wanting to presume anything (but without having tested) I suspect this would be TCP/135 + high ports.

    Some clarity from a point of authority would be appreciated.

  • I can submit and retrieve certs just fine with https. I have also successfully automated the process with certutil. It works perfect on a regular workgroup server - but on the same network. What must be done to do so from a workgroup machine that is outisde the network? 443 access only. THANKS!

  • Has anyone got any relevant information regarding port usage when certificates are requested via MMC and the Certificates snap-in?

  • I still get these errors on the Domain Controllers running 2008 R2 to a 2003 Enterprise CA. I have TCP 135 (RPC) open already, but I highly suspect it maybe the "Random port above port 1023" requirement as noted in the table. I hate to have to open up all ports above this. Any other way to make this a specific port? I can map the cahost computer from domain controller as \\cahost\ and I will see CertEnroll Share.

    Event ID: 13

    User: SYSTEM

    Source: CertificateServicesClient-CertEnroll

    Certificate enrollment for Local system failed to enroll for a DomainController certificate with request ID N/A from cahostname.my-domain.com\cahostname (The RPC server is unavailable. 0x800706ba (WIN32: 1722)).

    Event ID: 6

    User: N/A

    Source: CertificateServicesClient-AutoEnrollment

    Automatic certificate enrollment for local system failed (0x800706ba) The RPC server is unavailable.

  • Following the article at the following URL: blogs.technet.com/.../how-to-troubleshoot-certificate-enrollment-in-the-mmc-certificate-snap-in.aspx

    It appears that port 135 - TCP has to be open for RPC EPM. Basically for mmc and auto-enrollment scenarios.

  • For DCOM/RPC between a 2008R2 CA and 2008R2 webserver, you dont need "Random port above port 1023". Port 49152-65535 is enough.

    But if you still have one of them as 2003, you need the whole range.

  • If you use 2008 or later on both web server and CA, port 49152-65535 is enough.

    support.microsoft.com/.../832017

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment