h2 is not enabled in remote IIS

Issue

valid certificate under Server Certificates in IIS

certificate added to https binding

I have a valid trusted certificate provided by my organization and followed the steps provided in this link to enable the Http/2 protocol on IIS. But when I host a simple project through the remote IIS, the protocol in the browser’s Network tab shows as http 1.1.

How could I confirm that Http/2 is enabled in the IIS?

Solution

HTTP/2 was not supported before IIS version 10, so first check your iis version. and google chrome offers a quick and easy way to check if HTTP/2 is supported on your SSL-enabled site. First, visit your site in Chrome over HTTPS. There you’ll see your site listed with protocol h2, confirming your site works over HTTP/2.

Another method is simply to look at the network tab > headers > response headers > view source in Chrome or Firefox. There the headers can be seen. It should read "HTTP/2" or some sort I can’t recall right now. Easiest: You can use curl -I which will put the HTTP response as the first line.

Answered By – samwu

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published