Search code examples
sql-serveriiswindows-server-2019

Why is IIS HTTPS slow to load within SQL Server?


I'm migrating my Windows Server 2008 and SQL Server 2008 instances to Windows Server 2019 and SQL Server 2017. All went well except one issue which took me days to figure out which was HTTPS activation caused slow load within SQL Server.

When I use HTTP, the website load very quickly. When I activate HTTPS it take > 40 seconds to load the same page.

I can't work out why. Is there any setting to activate?

I'm using let's encrypt certificate and it is just a basic installation really nothing extraordinary.


Solution

  • The problem was coming from the IIS where Microsoft integrated HTTP/2 with IIS 10. When it is activated it takes triple time to validate the connection through the SSL. I just deactivated the HTTP/2 and OCSP.

    Funniest part is this [Microsoft Docs1 comment:

    HTTP/2 is a major upgrade after nearly two decades of HTTP/1.1 use and reduces the impact of latency and connection load on web servers.

    enter image description here