Reputation: 21
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
Reputation: 375
You can configure Kestrel server to serve Http1. Please follow the following instruction to solve the problem -
Go to your project appsettings.json file.
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
Reputation: 5235
You can try to disable HTTP2 and try it again:
Start → regeditEditor
Navigate to the folder/path: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\HTTP\Parameters
Under the Parameters folder, right-click the white-space, add 2 new DWORD (32-bit) values:
EnableHttp2Tls
EnableHttp2Cleartext
Ensure both new values have been set to 0(disabled) by right-clicking the value and clicking "Modify..."
Restart the OS.
Upvotes: 1