Ad cs web enrolment in iis

Emily Johnson 45 Reputation points
2026-09-07T15:51:34.8866667+00:00

Audits keep flagging our /certsrv pages for legacy XSS vulnerabilities every single cycle.

Please let me know how to properly harden or decommission them for good once configured.

A way to migrate over to modern CES/CEP endpoints without using legacy ASP pages please.

Windows for business | Windows 365 Business
0 comments No comments

1 answer

Sort by: Oldest
  1. Tracy Le 11,535 Reputation points Independent Advisor
    2026-09-07T17:46:46.7066667+00:00

    Hello Emily Johnson,

    The legacy Active Directory Certificate Services Web Enrolment interface under certsrv is built on outdated ASP components that lack modern security protections. As a result, it regularly fails penetration tests and vulnerability scans, often due to cross‑site scripting issues and NTLM relay exposure. Microsoft advises removing these pages in enterprise environments and moving to Certificate Enrolment Web Services (CES) and Certificate Enrolment Policy Web Services (CEP). These services use secure WCF endpoints over HTTPS and integrate directly with modern Windows clients without relying on interactive web pages.

    To retire the old interface, open PowerShell with administrative rights on the host CA or IIS server and run Uninstall‑AdcsWebEnrollment. You can then delete the remaining virtual directory in IIS Manager or remove the legacy certsrv application from the Default Web Site to close the attack surface immediately.

    Afterwards, deploy the modern endpoints by running Install‑AdcsEnrollmentPolicyWebService and Install‑AdcsEnrollmentWebService, making sure you bind valid TLS certificates and configure Windows Authentication or Kerberos. If this approach resolves your audit findings and supports your migration, please accept this answer.

    Tracy Le.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.