NET::ERR_CERT_WEAK_KEY is Chrome's way of saying the website's certificate uses a public key that is too short to be trusted. You see "Your connection is not private" with "The server's certificate contains a weak public key." Chrome and Edge refuse the connection without a bypass option on many builds.
Real-world cases are rare on public sites because every mainstream CA stopped issuing small keys long ago. You mostly meet this on old appliances, internal tools, legacy test servers, and certificates created by hand years ago. A variant, ERR_SSL_WEAK_EPHEMERAL_DH_KEY, is a different problem about the server's Diffie-Hellman key exchange parameters.
What counts as weak
The certificate's key pair is generated when the CSR is created. The size depends on the algorithm:
- RSA: a modulus of 1024 bits or less is considered weak by browsers. Current practice is 2048 bits as a minimum, and 3072 or 4096 if policy requires it. See RSA.
- ECDSA / elliptic curve: curves such as P-256 and P-384 are fine. Very small or unusual curves are not. See elliptic curve cryptography.
The exact thresholds belong to each browser and change over time, so check the current Chromium documentation if you need an exact cut-off. Aiming for RSA 2048 or ECDSA P-256 avoids any doubt.
Confirm the key size
On the server:
openssl x509 -in /etc/ssl/certs/example.crt -noout -text | grep -E "Public-Key|Signature Algorithm"
From the outside, without file access:
openssl s_client -connect example.com:443 -servername example.com </dev/null 2>/dev/null | openssl x509 -noout -text | grep -E "Public-Key|Signature Algorithm"
You will see something like Public-Key: (1024 bit). The SSL Checker also reports key type and size, and the SSL Chain Debugger lets you inspect each certificate in the chain, since an old intermediate can be the weak link.
Fix: generate a new key and reissue
The key size cannot be changed on an existing certificate. You need a new key pair and a new certificate.
Option 1: Let's Encrypt or another ACME CA
sudo certbot certonly --nginx -d example.com --key-type rsa --rsa-key-size 2048
Or request an ECDSA key instead:
sudo certbot certonly --nginx -d example.com --key-type ecdsa --elliptic-curve secp256r1
Certbot's default key type has changed between releases (newer versions default to ECDSA), and old configuration files may still specify a small RSA size. Check /etc/letsencrypt/renewal/example.com.conf for rsa_key_size.
Option 2: Commercial or internal CA
Create a new key and CSR, then submit the CSR for reissue:
openssl req -new -newkey rsa:2048 -nodes -keyout example.key -out example.csr -subj "/CN=example.com"
For an internal CA, update the CA template so it no longer permits small keys, then reissue every certificate that used it. See certificate signing request और key pair.
Option 3: Self-signed device certificates
Many routers, printers and old management consoles ship with a weak self-signed certificate. Replace it from the device's admin page with a certificate generated at a proper size. If the device cannot do that, put it behind a reverse proxy that terminates TLS with a proper certificate, or access it only through a VPN.
After reissuing
- Install the new certificate and key, plus the full chain, in the web server. Reload the service.
- Check the chain and protocols with the TLS वर्शन चेकर and the SSL Checker.
- Re-test in a private window to avoid cached results.
- Update everything else that shares the key: load balancer, mail server, CDN origin. See SSL certificate types explained.
Find other weak certificates
If one certificate was created years ago, others probably were too. Run the Bulk SSL Checker across your hostnames and look for old issuers, long validity, and small keys. Modern public certificates also have a short maximum lifetime, so automated renewal is the norm; see automate certificate renewal.
अगले कदम
- Read SSL and TLS certificate errors explained.
- Compare with NET::ERR_CERT_AUTHORITY_INVALID.
- If the chain is incomplete, see incomplete certificate chain.
- Check the handshake error family in ERR_SSL_VERSION_OR_CIPHER_MISMATCH.
सामान्य प्रश्न
Is a 2048-bit RSA key still acceptable?
Yes. It is the common minimum for public certificates today. Use 3072 or 4096 only if a security policy requires it, and expect slightly slower handshakes.
Should I move to ECDSA?
ECDSA keys are smaller and faster. Many sites serve ECDSA and RSA certificates side by side to support older clients.
Can I click through the warning?
Often not, and you should not. The key can be attacked more easily than a strong one, so replace it.
Does renewing the certificate fix it?
Only if the renewal creates a new key. Some tools reuse the old key by default, so check your renewal settings.
Get notified when this fix updates
Plus occasional practical tips on uptime and monitoring, nothing else. Unsubscribe anytime.
यह पेज सामान्य जानकारी है, जिसे हमारी संपादकीय टीम ने लिखा है और दस्तावेज़ीकरण बदलने पर अपडेट किया जाता है। सर्वर और प्रदाता अलग-अलग होते हैं, इसलिए बदलाव पहले सुरक्षित तरीके से जाँचें। देखें: संपादकीय नीति और अस्वीकरण.