Hi Martins Marco
When CES tries to delegate to the CA using Kerberos Constrained Delegation and that link breaks, you’ll typically see those 401 Unauthorized errors from external devices. The good news is you don’t need to rebuild either CES or the CA servers. What you should do is check the delegation settings in Active Directory. Go into the service account properties that CES is running under and make sure the delegation tab is set to “Constrained Delegation” for the services HOST/<CA server> and rpcss/<CA server>. It’s also important to verify that the SPNs for both CES and the CA are registered correctly you can confirm with setspn -L <account>. Once those are fixed, restart the CES service and test certificate enrollment again. If the SPNs and delegation are aligned, requests should start flowing without the 401 blocks.
If this explanation helps you get certificate enrollment working again, please hit “accept answer” so we know it was useful!