Had an issue recently in a SharePoint Development environment where the SharePoint Web App was taking forever to display its contents.
After some investigation and checking the logs, I noticed that there was a lot of events about Certificates taking longer than normal to process.
The problem occurs in offline environments where the server has no internet access to check the certificate revocation for the .NET assemblies.
The easiest way to fix this issue is to disable the Certificate Revocation Check via the registry.
- Click Windows + R and type in REGEDIT.
- Navigate to the following location in the registry: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\WinTrust\TrustProvider\Software Publishing
- Change the State REG_DWORD to 146944

- Click ok.
- To enable, change the State REG_DWORD to 146432.