Rahul J
Rahul J

Reputation: 21

ERR_HTTP2_INADEQUATE_TRANSPORT_SECURITY

Hi Today I added a SSL certificate for a ASP.NET website.

After adding the certificate I am getting ERR_HTTP2_INADEQUATE_TRANSPORT_SECURITY error

If I access site using http its working but https its giving the error [Application hosted in Windows server 2016 and IIS 10]

Upvotes: 1

Views: 3081

Answers (2)

Shalim Ahmed
Shalim Ahmed

Reputation: 375

You can configure Kestrel server to serve Http1. Please follow the following instruction to solve the problem -

  1. Go to your project appsettings.json file.

  2. Add below code under "AllowedHosts": "*" line

    "Kestrel": { "EndpointDefaults": { "Protocols": "Http1" } }

Your default appsettings.json file will look like this -

{
   "Logging": {
      "LogLevel": {
         "Default": "Information",
         "Microsoft": "Warning",
         "Microsoft.Hosting.Lifetime": "Information"
      }
   },
   "AllowedHosts": "*",
   "Kestrel": {
      "EndpointDefaults": {
         "Protocols": "Http1"
      }
   }
}

Hope it will solve your problem.

Upvotes: 2

samwu
samwu

Reputation: 5235

You can try to disable HTTP2 and try it again:

  1. Start → regeditEditor

  2. Navigate to the folder/path: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\HTTP\Parameters

  3. Under the Parameters folder, right-click the white-space, add 2 new DWORD (32-bit) values:

    • EnableHttp2Tls

    • EnableHttp2Cleartext

  4. Ensure both new values have been set to 0(disabled) by right-clicking the value and clicking "Modify..."

  5. Restart the OS.

enter image description here

Upvotes: 1

Related Questions