This post explains how to fix the SEC_ERROR_INADEQUATE_KEY_USAGE error that sometimes occurs when you visit a secure url in Firefox.
The Problem
When loading a secure url (https) in Firefox, you see «Secure Connection Failed», «Error code: SEC_ERROR_INADEQUATE_KEY_USAGE».
The Solution
- Go to
about:profiles
in Firefox. Do this by entering «about:profiles» in the address bar like a URL. - Locate the profile that is currently in use. This will be the profile that has no Remove button.
- Click Open Folder in Root Directory.
- Delete the cert9.db and cert_override.txt files. You may need to close Firefox to delete these files.
- Try problematic url again. The problem should be resolved.
Firefox was updated to v82.0.2 yesterday, and since then I’m getting this error using Firefox to connect to my NetGear ReadyNAS admin page, which uses the original self-signed certificate.
Secure Connection Failed
An error occurred during a connection to anemone. Certificate key usage inadequate for attempted operation. This is the error:
Error code: SEC_ERROR_INADEQUATE_KEY_USAGE
The page you are trying to view cannot be shown because the authenticity of the received data could not be verified. Please contact the web site owners to inform them of this problem.
Learn more…
It doesn’t even display the certificate or give me the option to «Continue anyway». I have to use Chrome to connect, which make me even more unhappy!
With the previous version of FF, I could log into the admin page.
I should have the option to accept that the connection isn’t trusted, and continue to work. This NAS is in my home network behind a router and admin access is password controlled. That’s safe enough for my purposes.
Firefox was updated to v82.0.2 yesterday, and since then I’m getting this error using Firefox to connect to my NetGear ReadyNAS admin page, which uses the original self-signed certificate.
Secure Connection Failed
An error occurred during a connection to anemone. Certificate key usage inadequate for attempted operation. This is the error:
Error code: SEC_ERROR_INADEQUATE_KEY_USAGE
The page you are trying to view cannot be shown because the authenticity of the received data could not be verified.
Please contact the web site owners to inform them of this problem.
Learn more…
It doesn’t even display the certificate or give me the option to «Continue anyway». I have to use Chrome to connect, which make me even more unhappy!
With the previous version of FF, I could log into the admin page.
I should have the option to accept that the connection isn’t trusted, and continue to work. This NAS is in my home network behind a router and admin access is password controlled. That’s safe enough for my purposes.
I created a Blazor Server
webapp and published it from Visual Studio
using right click on the project — publish. I am publishing to a local folder, amongst others the output includes MyProject.exe
Running that works fine:
info: Microsoft.Hosting.Lifetime[0]
Now listening on: http://localhost:5000
info: Microsoft.Hosting.Lifetime[0]
Now listening on: https://localhost:5001
info: Microsoft.Hosting.Lifetime[0]
Application started. Press Ctrl+C to shut down.
info: Microsoft.Hosting.Lifetime[0]
Hosting environment: Production
However I can not access my webapp on https://localhost:5001
. Firefox gives me the error code SEC_ERROR_INADEQUATE_KEY_USAGE
. There is no option to ignore it. Accessing it using Chrome just gives me HTTP ERROR 500
. In the console where I started MyProject.exe
I can find this error:
fail: Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware[1]
An unhandled exception has occurred while executing the request.
System.InvalidOperationException: Cannot find the fallback endpoint specified by route values: { page: /_Host, area: }.
at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.DynamicPageEndpointMatcherPolicy.ApplyAsync(HttpContext httpContext, CandidateSet candidates)
at Microsoft.AspNetCore.Routing.Matching.DfaMatcher.SelectEndpointWithPoliciesAsync(HttpContext httpContext, IEndpointSelectorPolicy[] policies, CandidateSet candidateSet)
at Microsoft.AspNetCore.Routing.EndpointRoutingMiddleware.<Invoke>g__AwaitMatch|8_1(EndpointRoutingMiddleware middleware, HttpContext httpContext, Task matchTask)
at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)
fail: Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware[3]
Can anyone help me with this? And yes, it’s a private application and shall run locally on localhost. When I run my webapp from Visual Studio, everything works fine.
Материал из Wiki — Iphoster — the best ever hosting and support. 2005 — 2023
Перейти к:навигация, поиск
Ошибка при открытии сайта — SEC ERROR INADEQUATE KEY USAGE в браузере Firefox
Ошибки в браузере Firefox:
SEC_ERROR_INADEQUATE_KEY_USAGE SEC_ERROR_UNKNOWN_ISSUER MOZILLA_PKIX_ERROR_MITM_DETECTED ERROR_SELF_SIGNED_CERT
Решение — это добавить ресурс в белый лист Вашего антивируса на компьютере.
Источник — https://wiki.iphoster.net/index.php?title=Ошибка_при_открытии_сайта_-_SEC_ERROR_INADEQUATE_KEY_USAGE_в_Firefox&oldid=9751
I am provided CA Signed Server certificate, chain certificate and private key. From those, I created keystore using open SSL and secured the web application (HTTPS configuration in server.xml). However, when I tried to access web application via browser(Firefox), it gives out below error.
Secure Connection Failed
Certificate key usage inadequate for attempted operation. Error code: SEC_ERROR_INADEQUATE_KEY_USAGE
Certificates were initially in «.crt» and I tried after converting them to «.cer» as well. Still, the error complains something about «Key Usage». I ran following command to check certificate key usage and screenshot is attached.
openssl x509 -in ServerCertificate.cer -text -noout
Below is from Chain certificate;
Your help in resolving this issue is highly appreciated.
[PS: Before configuring CA signed certificates, I created self signed certs and that configuration worked with no issue]