Keys and signatures — RSA, ECDSA, Ed25519 and the end of SHA-1
The short answer
The recommended public TLS choices today are RSA 2048-bit or larger, ECDSA P-256/P-384 and Ed25519. Signature hashes should be SHA-256 or stronger; SHA-1 and MD5 signatures are treated as weak.
Key algorithm is not signature algorithm
A certificate names two algorithms. The public key algorithm says whether this certificate's key is RSA or EC. The signature algorithm says which hash and key the issuer used to sign this certificate. A certificate with an RSA key can be signed with ECDSA.
| Public key | Shown as | Recommendation |
|---|---|---|
| RSA | RSA 2048, RSA 4096 | 2048 bits or more |
| ECDSA | ECDSA P-256, ECDSA P-384 | P-256 or stronger |
| EdDSA | Ed25519, Ed448 | Ed25519 preferred |
| DSA | DSA 1024 | do not use for new certificates |
Reading key size
RSA key size is the bit length of the modulus: 2048 bits is 256 bytes, 4096 bits is 512 bytes. ECDSA size follows the curve (P-256 is 256 bits, P-384 is 384). Ed25519 is 256 bits and Ed448 is 448.
Why SHA-1 is weak
SHA-1 no longer has collision resistance. Practical attacks can produce two different inputs with the same hash, so a signature over it can be forged. Public CAs stopped issuing SHA-1 certificates and browsers do not trust them.
This tool adds a weak signature badge for SHA-1 or MD5. Even where a legacy internal system forces their use, plan the replacement.
Choosing an algorithm
- Issue new certificates with ECDSA P-256 or RSA 2048 and above.
- If very old clients must work, RSA 2048 has the widest compatibility.
- If the server and clients are modern, Ed25519 is fast and compact.
- Use SHA-256 or stronger for the signature hash.
- Plan key rotation and algorithm migration together.
Reading a name is not verifying
Reading an algorithm name is not the same as verifying a signature. This tool shows the algorithm and key size but does not verify the signature; openssl verify or a browser does that.
Post-quantum algorithms are not yet the standard TLS certificate choice. For now, staying on RSA 2048+ and ECDSA P-256+ is the practical baseline.
Questions
Is RSA 2048 still safe?
For current public TLS, 2048 bits is the widely accepted minimum. Systems that need long-term protection may consider 3072 bits or a move to ECDSA.
ECDSA or Ed25519?
Both are modern. ECDSA has broader compatibility; Ed25519 is simpler to implement and fast. Choose by what your servers and clients support.
The certificate is valid but signed with SHA-1. Is that acceptable?
It may be structurally valid but should not be trusted. Replace it immediately on public services and as soon as possible internally.
Paste a certificate to see its key type, size, signature algorithm and weakness warning.
Open the checkerThis article follows RFC 5280 and the CA/Browser Forum Baseline Requirements.