20% off every kit until 31 December. Code SAVE20 is added for you at checkout.

← All guides & playbooks

Engineering guide · Reviewed 30 November 2026

RSA vs ECDSA TLS certificates: how to switch

An ECDSA certificate can replace the RSA key that proves your website’s identity. Start with P-256, check the whole trust chain, then test the clients that actually connect to you.

About 5 seconds. No signup. Public endpoints only; internal systems and private keys need a separate inventory.

Two certificate types, one separate connection secret

RSA certificates

The site proves possession of an RSA private key. A practical RSA break would undermine that proof. Larger RSA keys do not remove the dependency on RSA.

ECDSA P-256 certificates

The site proves possession of an elliptic-curve private key. This removes RSA from that leaf key. It does not remove RSA from an issuer, a fallback certificate or your sign-in tokens.

If RSA alone were broken while elliptic curves remained secure, an ECDSA leaf with a suitable non-RSA trust path would avoid that RSA authentication dependency. This is a conditional migration benefit, not a claim that RSA is broken. See the current evidence and RSA-2048 status.

Key exchange is a different job. X25519MLKEM768 combines classical X25519 with ML-KEM-768 for the connection secret. It can accompany ECDSA authentication, but does not make ECDSA signatures quantum-resistant. Check both, as explained in Cloudflare’s post-quantum TLS documentation.

1. Issue an ECDSA certificate

Let’s Encrypt with Certbot

For a new Nginx-managed certificate, explicitly choose the key type and curve. Replace the example names with your own. First confirm DNS and challenge reachability; use your established deployment and renewal hooks.

sudo certbot certonly --nginx -d example.com   --key-type ecdsa --elliptic-curve secp256r1

# Convert an existing Certbot certificate lineage:
sudo certbot renew --cert-name example.com   --key-type ecdsa --elliptic-curve secp256r1 --force-renewal

Forced renewal creates a new issuance and is subject to CA limits. Stage the change and test automatic renewal. The Certbot user guide documents the migration flags. Choosing ECDSA does not by itself select every client’s trust path.

Cloudflare edge

In SSL/TLS → Edge Certificates, inspect the active certificate pack for your hostname. Cloudflare documents ECDSA for Universal and Advanced certificates, with RSA availability varying by product and plan. Check the visitor-facing edge certificate and your origin certificate separately; an origin-only change cannot replace an edge key.

For a controlled certificate selection, review your certificate type and CA options and Advanced Certificate Manager. Do not assume every plan offers an ECDSA-only toggle. Probe the actual endpoint after issuance and renewal.

AWS Certificate Manager

aws acm request-certificate --domain-name example.com   --validation-method DNS --key-algorithm EC_prime256v1   --region eu-west-2

Complete DNS validation, then attach the issued certificate to the intended listener. Use the region required by your AWS service. Confirm its supported key algorithms before making the change. An Application Load Balancer can select ECDSA ahead of RSA when both are present and the client supports it; keeping both still leaves an RSA path. See AWS’s ECDSA rollout example and service compatibility limits.

2. Serve the certificate you issued

Nginx

Point the TLS server at your ECDSA full chain and matching private key. Keep private keys on the server; never paste them into a scanner.

server {
    listen 443 ssl;
    server_name example.com;
    ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem;
    # Keep the rest of your tested server configuration.
}
# Validate before reloading:
sudo nginx -t && sudo systemctl reload nginx

Nginx supports multiple certificate types. Audit every ssl_certificate entry and virtual host rather than assuming the first is the only one. Order a full-chain file leaf first, then intermediates. Nginx SSL reference.

Caddy

example.com {
    tls {
        key_type p256
    }
    reverse_proxy localhost:3000
}

This setting selects the key type for managed issuance. It does not rewrite a separately loaded certificate. Validate and reload your Caddyfile with your normal deployment process, then inspect the certificate actually served. Caddy TLS reference.

3. Check leaf, intermediates and trusted root

# Capture the chain with the correct SNI hostname:
openssl s_client -connect example.com:443 -servername example.com   -showcerts -verify_return_error </dev/null

# Save each PEM certificate separately, then inspect each one:
openssl x509 -in leaf.pem -noout -text
openssl x509 -in intermediate.pem -noout -text
openssl x509 -in root.pem -noout -text

# Verify an explicit candidate path (not every client's path):
openssl verify -CAfile root.pem -untrusted intermediate.pem leaf.pem

Look for id-ecPublicKey and P-256 in the leaf’s public-key section. Read each issuer’s key and each child certificate’s signature algorithm. The signature field describes how the issuer signed that certificate, not necessarily the certificate’s own key.

The server usually omits the root. Obtain the expected root from the CA or your client trust store, and test alternate and cross-signed paths. A root’s self-signature is not normally revalidated as an ordinary chain signature; a forgeable trusted RSA root key is still a dependency worth recording. RFC 5280 describes certificate path validation.

Test old clients, API integrations, regions, IPv4/IPv6 and renewals. Record any RSA fallback. The public scan is a starting point; it cannot enumerate every certificate your CDN may select or every private trust store. Then check OIDC signing keys and follow the full migration checklist.

Choose your next step

The free check is a starting point. Get the instructions, the evidence to send, or help with the review.

Fix-It Kit

£31.20was £39 + VAT

Fix what you control with your developer or AI coding tool. Includes a tailored checklist, prompts and read-only checks.

Buy the Fix-It Kit

Evidence Pack

£79.20was £99 + VAT

Put your findings in writing: a six-page PDF, editable customer and board documents, plus the complete Fix-It Kit.

Buy the Evidence Pack

Zero-Access Review

£1,500 + VAT

A fixed-fee engineering review of what a public scan cannot see. We never log in to your production systems.

Book a review

Questions engineers ask

Does an ECDSA certificate make my website post-quantum?

No. ECDSA P-256 is classical elliptic-curve cryptography. Hybrid X25519MLKEM768 key exchange protects a different part of TLS: the shared connection secret. Certificate authentication still needs its own migration.

Can an ECDSA leaf certificate still depend on RSA?

Yes. An ECDSA leaf may be signed by an RSA intermediate, and alternate trust paths may end at RSA roots. Inspect each certificate’s subject public-key algorithm and the issuer’s signature algorithm, then validate the path your actual clients build.

Should I keep an RSA fallback certificate?

It may help legacy clients during a planned rollout, but it retains an RSA authentication path. Test client compatibility and remove the fallback if your policy requires eliminating RSA. In a confirmed incident, follow the relevant advisory rather than an ordinary gradual rollout.

PostRSA Checkout

Checkout

Total

Billing
Have a promo or referral code?

Payment is processed by Stripe. See terms and privacy.

Fixed fee · Paid securely via Stripe · No production access required