Skip to content
RU

SEC_ERROR_INADEQUATE_KEY_USAGE in Firefox: How to Fix It

What it means: A certificate in the chain has a keyUsage extension that forbids its role: signing the handshake or issuing certificates.

  1. Retry from another network or device
  2. Pause antivirus HTTPS scanning, then reload
  3. If it fails everywhere, dump the chain's keyUsage
  4. Reissue the faulty certificate with correct key usage
  5. Deploy it, reload the server, retest in Firefox

Test your URL now

Runs a full TLS check: handshake, protocol versions, certificate chain, trust and expiry.

Check your site's SSL →

What SEC_ERROR_INADEQUATE_KEY_USAGE means

SEC_ERROR_INADEQUATE_KEY_USAGE is an NSS error code (-8102, SEC_ERROR_BASE + 90) that Firefox shows when a certificate in the server's chain carries a keyUsage extension that does not permit the role the certificate plays. It is a certificate-verification failure during the TLS handshake, not a DNS, network or HTTP problem. Firefox's verifier (mozilla::pkix) raises it in three situations:

  • Server (leaf) certificate: the keyUsage extension is present but contains none of digitalSignature, keyEncipherment or keyAgreement. Firefox tries all three and fails only if every one is missing.
  • Intermediate or root used as an issuer: its keyUsage lacks keyCertSign, so it is not allowed to sign certificates.
  • Malformed extension: an empty bit string or non-zero padding bits in the DER encoding.

A certificate without any keyUsage extension is not restricted and does not cause this error. A missing serverAuth in extendedKeyUsage is a different failure, reported as SEC_ERROR_INADEQUATE_CERT_TYPE. One more detail: if the server certificate is self-signed and fails this way, Firefox reports MOZILLA_PKIX_ERROR_SELF_SIGNED_CERT instead.

Causes in Firefox, Chrome, Edge and Safari

BrowserWhat you seeMost common trigger
Firefox"Secure Connection Failed" with SEC_ERROR_INADEQUATE_KEY_USAGE, no option to continueCertificate from a private CA or appliance with the wrong key usage bits
Chrome, EdgeLeaf problem: ERR_SSL_KEY_USAGE_INCOMPATIBLE; bad issuer: generally ERR_CERT_INVALIDThe same certificate; Chrome checks the bit required by the negotiated key exchange
SafariIts own wording, never the NSS codeThe same certificate defect, if Safari rejects it

Firefox does not let you add an exception for this error: it is not in the group of overridable certificate errors (unknown issuer, expired, name mismatch). That is deliberate, because the certificate is structurally unfit for its job, not merely untrusted.

For server certificates Firefox is more lenient than Chrome: a keyEncipherment-only RSA certificate passes in Firefox but fails in Chrome 124 and later with ERR_SSL_KEY_USAGE_INCOMPATIBLE. A leaf with only dataEncipherment or nonRepudiation fails in both. For issuing CAs the rule is the same in both browsers: if a CA certificate has a keyUsage extension, it must assert keyCertSign. In practice the error usually points to a private CA: OpenSSL configs copied from old tutorials, appliance-generated certificates, or test PKI scripts.

Behind Cloudflare, nginx or another proxy

Firefox validates the certificate of whatever terminates TLS, so behind Cloudflare's proxy your origin certificate is not the one it rejects. The check that applies: on nginx, HAProxy or a load balancer, Firefox receives the whole chain file in the TLS-terminating configuration, and an old internal intermediate without keyCertSign left in that file is a frequent cause.

If you own the site

  1. Dump every certificate the server sends.
    openssl s_client -connect app.internal:443 -servername app.internal -showcerts </dev/null 2>/dev/null \
      | awk '/BEGIN CERT/{n++} {print > ("cert" n ".pem")}'
    for f in cert*.pem; do echo "== $f"; openssl x509 -in "$f" -noout -subject -ext keyUsage,basicConstraints; done
    The leaf (cert1.pem) needs Digital Signature and, for RSA, preferably also Key Encipherment. Every certificate with CA:TRUE that has a key usage line needs Certificate Sign.
  2. Fix the leaf profile. Reissue with:
    keyUsage = critical, digitalSignature, keyEncipherment
    extendedKeyUsage = serverAuth
    For an ECDSA key, digitalSignature alone is the correct set.
  3. Fix the CA profile if an issuer is the culprit. An intermediate needs keyUsage = critical, keyCertSign, cRLSign and basicConstraints = critical, CA:TRUE. Changing a CA certificate means re-signing it and then reissuing or at least re-chaining every server certificate under it.
  4. Public CA certificates: these are issued with standard profiles, so suspect the deployment: a wrong file in the chain, an old intermediate left in the bundle, or an inspection device in front of the server.
  5. Reload and retest: nginx -t && systemctl reload nginx, then repeat step 1.

Extensions are covered by the CA signature, so there is no way to patch them into an existing certificate; only a reissue changes them.

If you are a visitor

  • Only at work or school: a TLS-inspection proxy is probably generating the certificate. Report the exact code to IT.
  • Antivirus HTTPS scanning: turn off encrypted-connection scanning and reload. If the error goes away, update or reconfigure the antivirus.
  • Your own device (router, NAS, camera, lab server): regenerate or upload a correct certificate as described above.
  • Public site that fails for everyone: nothing on your side will fix it. Contact the site owner; trying another browser may load the page, but the certificate stays defective.

Clearing Firefox's cache or history does not help, because the certificate is delivered in each handshake. The system clock plays no role in this error.

How to confirm the fix

Re-run the openssl loop from the owner steps and confirm the leaf shows Digital Signature and each CA shows Certificate Sign. Then reload the page in Firefox with a fresh tab. For an outside view of the chain, SANs, expiry and protocol support, use the enterno.io SSL checker.

Related errors

CertificateExpiry, issuer, domains (SAN)
ChainIntermediate and root CA validation
TLS ProtocolTLS version and cipher suite
VulnerabilitiesHeartbleed, POODLE, weak ciphers

Why teams trust us

TLS 1.3
supported
Full
CA chain check
3,158
checks in 30 days
30/14/7
days-to-expiry alerts

How it works

1

Enter domain

2

TLS chain verified

3

Expiry date & vulnerabilities

What Does the SSL Check Cover?

SSL/TLS is the encryption protocol that protects data between the browser and server. Our tool analyzes the certificate, chain of trust, TLS version, and knownvulnerabilities.

Certificate Details

Issuer, validity period, signature algorithm, covered domains (SAN), and validation type (DV/OV/EV).

Chain of Trust

Full chain verification: from leaf certificate through intermediates to root CA.

TLS Analysis

Protocol version (TLS 1.2/1.3), cipher suites, Perfect Forward Secrecy (PFS) support.

Expiry Alerts

Set up a monitor — get Telegram and email alerts 30/14/7 days before expiration.

DV vs OV vs EV Certificates

DV (Domain Validation)
  • Confirms domain ownership only
  • Issued in minutes automatically
  • Free via Let's Encrypt
  • Suitable for most websites
  • Most common certificate type
OV / EV
  • Organization (OV) or Extended Validation (EV)
  • Issued in 1-5 business days
  • Costs $50 to $500/year
  • For finance, e-commerce, government sites
  • Increases user trust

Who uses this

DevOps

SSL certificate monitoring

Security

TLS config audit

SEO

HTTPS as ranking factor

E-commerce

customer trust

Common Mistakes

Expired certificateBrowsers block sites with expired SSL. Set up auto-renewal or monitoring.
Incomplete certificate chainWithout intermediate CA, some browsers and bots cannot verify the certificate.
Mixed content on HTTPS siteHTTP resources on an HTTPS page — the browser lock icon disappears, reducing trust.
Using TLS 1.0/1.1Legacy TLS versions have known vulnerabilities. Use TLS 1.2+ or 1.3.
Domain mismatch in certificateThe certificate must cover all site domains, including www and subdomains.

Best Practices

Set up auto-renewalLet's Encrypt + certbot with cron — certificate renews automatically every 60-90 days.
Enable HSTSStrict-Transport-Security header forces browsers to always use HTTPS.
Use TLS 1.3TLS 1.3 is faster (1-RTT handshake) and safer — legacy ciphers removed.
Monitor expiration datesCreate a monitor on Enterno.io — get notified well before expiration.
Verify chain after renewalAfter certificate renewal, confirm that intermediate certificates are installed.

Get more with a free account

SSL certificate monitoring, check history and alerts 30 days before expiry.

Sign up free

Learn more

Sources

Frequently Asked Questions

Can I add an exception for SEC_ERROR_INADEQUATE_KEY_USAGE in Firefox?

No. Firefox only offers exceptions for trust, date and name-mismatch errors; this one is not overridable, so the certificate must be reissued.

What is the difference between keyUsage and extendedKeyUsage?

keyUsage says what the key may do cryptographically, such as sign or encipher keys. extendedKeyUsage says which application it is for, such as serverAuth; a missing serverAuth gives SEC_ERROR_INADEQUATE_CERT_TYPE instead.

What is the minimum key usage for an HTTPS certificate?

For RSA, digitalSignature plus keyEncipherment covers every client; for ECDSA, digitalSignature. Add extendedKeyUsage serverAuth in both cases.

Do Chrome and Firefox check key usage the same way?

Not exactly. Firefox accepts a server certificate with any of digitalSignature, keyEncipherment or keyAgreement, while Chrome requires the specific bit used by the negotiated key exchange; both require keyCertSign on CA certificates that carry a keyUsage extension.

How do I find which certificate in the chain is at fault?

Split the chain from openssl s_client -showcerts into files and print -ext keyUsage,basicConstraints for each. The leaf needs Digital Signature (plus Key Encipherment for RSA), and every CA certificate with a key usage line needs Certificate Sign.

Try the live tool that powered this guide

Free plan — 10 monitors, checks every 5 min, no card required. Upgrade for 1-minute interval and multi-region monitoring.