ECDSA vs RSA SSL Certificates
Both RSA and ECDSA certificates are trusted by browsers. They differ in key size, speed and how old a device can be. For most new sites, ECDSA is a good default. RSA remains useful when you must serve very old clients.
ECDSA vs RSA: side by side
| Property | RSA 2048 | RSA 3072 | ECDSA P-256 |
|---|---|---|---|
| Approx. security level | 112 bits | 128 bits | 128 bits |
| Public key size | 256 bytes | 384 bytes | 64 bytes |
| Signature size | 256 bytes | 384 bytes | about 64 bytes |
| Signing cost on the server | Higher | Much higher | Lower |
| Verifying cost on the client | Very low | Low | Higher than RSA |
The security levels follow NIST guidance on key strength. Sizes are from the standard encodings. Actual speed depends on your CPU and library, so benchmark on your own hardware.
Why ECDSA is often faster for you
On a busy server, signing during the handshake is the costly step. ECDSA signing is cheaper than RSA, so a server can complete more handshakes per second. The smaller certificate also saves bytes in the handshake, which helps on slow mobile networks. Clients do slightly more work to verify ECDSA, but the difference is small on modern phones.
Compatibility
Every current browser and operating system supports ECDSA P-256 certificates. The concern is only old software such as very old Android, Windows XP-era clients and legacy Java or embedded firmware. If your analytics show none of them, ECDSA is safe. If you do serve them, use RSA, or serve both.
Servers can hold two certificates, one of each type, and pick based on what the client supports. Nginx and Apache both allow this, and Certbot can issue both. The handshake rules behind the choice are explained in what a cipher suite is.
Request each type with Certbot
certbot certonly --key-type ecdsa --elliptic-curve secp256r1 \
--cert-name example-ecc -d example.com -d www.example.com
certbot certonly --key-type rsa --rsa-key-size 3072 \
--cert-name example-rsa -d example.com -d www.example.com
Both commands need a web server plugin or a validation method added, which depends on your setup. Check the Certbot documentation for your version, as flags have been added over time. Using separate certificate names keeps the two renewals independent.
ECDSA vs RSA: which to choose
- New public website: ECDSA P-256. Simple and fast.
- Must support legacy clients: RSA 2048 at minimum, or dual certificates.
- Compliance with a stated policy: follow the policy. Some require a certain key type or size.
- Not sure: check your analytics for old user agents, then decide.
Test what you serve
echo | openssl s_client -connect example.com:443 \
-servername example.com | openssl x509 -noout -text \
| grep -E "Public Key Algorithm|Public-Key"
That prints the key type and size of the certificate you actually serve. See also how public key cryptography works for the basics and what a digital certificate is for the full field list.
A note on the future
Neither RSA nor ECDSA resists a large quantum computer. That does not change today's choice, and no public CA offers post-quantum certificates yet. See post-quantum cryptography in TLS.
Dual certificate setup in practice
With Nginx you can list two certificate and key pairs in one server block, one ECDSA and one RSA. The server then picks the one the client can use. Test both paths: connect with -cipher flags that force an RSA-only or ECDSA-only handshake, and confirm each returns the right certificate. Renew both with the same schedule so one does not expire alone. If that sounds like more work than your audience justifies, choose one type and move on. The simplest working setup beats a clever one that nobody maintains. See installing free SSL on Nginx and Apache.
Related reading: generating a key and CSR, Best TLS Configuration for Nginx and Apache, the cipher suite checker and the CSR decoder.
Frequently Asked Questions
Can I switch type at renewal?
Yes. Generate a new key of the other type and request the certificate. Nothing about the domain changes.
Does Let's Encrypt support ECDSA?
Yes. Check its documentation for the current chains and how to request an ECDSA certificate with your client.
Is a larger curve better?
P-256 is widely supported and enough for web use. Larger curves such as P-384 are accepted but add cost for little gain in most cases.
See also the certificate checker and the best TLS configuration for websites.
Is ECDSA as secure as RSA?
Yes at equivalent key sizes. A 256-bit ECDSA key is roughly comparable to a 3072-bit RSA key.
Will ECDSA break old clients?
Very old browsers and some embedded devices cannot verify it. Test what your traffic actually uses before switching a public site.
Can I serve both at once?
Yes. Install an ECDSA certificate and an RSA certificate for the same hostname and let the server pick based on what the client offers.
✅ Post-Installation Verification & SEO Checklist
After applying the steps above, run through this 5-point checklist to prevent browser warnings and protect your Google SEO rankings:
- Verify full CA chain trust and TLS 1.3 support using our Live SSL Checker.
- Scan for Mixed Content HTTP links and check HSTS/CSP headers on Security Headers Checker.
- Enforce a permanent 301 HTTP-to-HTTPS redirect with our HTTPS Redirect Generator.
- Confirm both root and
wwwversions resolve cleanly to one canonical HTTPS URL. - Verify your HTTPS property and
sitemap.xmlinside Google Search Console and Bing Webmaster Tools.