Blog Post
The Nightmare of renewing NDES Enrollment Agent Certificates
Great post, Dagmar! However, a crucial piece of information is missing here. If you go with the auto-enrollment option, the SCEP IIS application pool must be restarted for the updated certificate to take effect. I create a scheduled task that recycles the SCEP IIS application pool whenever a certificate renewal event occurs. I'd be happy to share that code with you if you are interested. :)
- MMVaderApr 09, 2026MCT
Hi Richard, great thanks for your comment! And you are absolutely right, the currently used certs (and corresponding keys) are cached in memory (in case of using a HSM, only the 'links' to the keys are cached) and the IIS worker process must be restarted to let NDES actively use the new certs and keys.
However, the worker process will automatically been reset during normal operations (based on configured 'recycling' settings of the NDES IIS AppPool) and at least (as NDES should be treated as T0 system) with the next update appliance.
For that reason, we did not mention this explicitly here. But if you want to have the new certs affective right after enrollment, an additional step is required (as you wrote) which could be attached to the 'Certificate Replace' event ID (1001) from the certificate lifecycle eventlog (Certificate Services Lifecycle Notifications | Microsoft Learn)!