In EntraCP, the proxy is set directly in EntraCP’s configuration (no need to set it on any web.config file). It can be set in the central administration > Security > EntraCP global configuration, or using PowerShell:
The steps below need to be applied in all the SharePoint servers of the farm.
EntraCP connects to Microsoft Graph using HTTPS, and Windows will try to validate the certificates using the links in their CRL. If Windows cannot connect to those links, the typical behavior is random timeouts during a few minutes while using the people picker / EntraCP. Apply the steps below on each SharePoint server to fully configure the proxy:
Configure the WinHTTP proxy
Run netsh as shown below in an elevated command prompt:
Configure the WinINET proxy machine wide:
The PowerShell script below sets the WinINET proxy config machine wide (instead of per-user by default)