// SIP TLS

Weak certificate key or SHA-1 signature

Two things make a certificate weak even when its dates, name and chain are right. One is a short key: RSA keys below 2048 bits are within reach of a well-funded attacker and are refused by default in current TLS libraries. The other is a SHA-1 signature, where the CA signed the certificate with a hash function in which practical collisions have been shown.

Both usually come from old equipment, such as a certificate generated on the device years ago or a private CA that was never updated. Peers do not negotiate around a weak certificate, they refuse it, so a trunk can fail the day the other side upgrades its TLS library, with no change on your side at all.

Error messages you may see

  • EE certificate key too weak
  • CA signature digest algorithm too weak
  • x509: cannot verify signature: insecure algorithm SHA1-RSA

Common causes

  • The certificate was generated on the device with a 1024-bit RSA key, a default on older firmware.
  • An internal CA still signs with SHA-1, or its own certificate is signed that way.
  • A certificate issued long ago was carried over to new hardware without being reissued.
  • A peer raised its security level, so a key it accepted last month is now refused.

How to fix it

  1. Generate a new key on the SIP server, either RSA with 2048 or 3072 bits or ECDSA on the P-256 curve.
  2. Request the new certificate with a SHA-256 signature, which public CAs use by default today.
  3. If a private CA signs the certificate, move the CA itself to SHA-256 and a strong key, then reissue what it signed.
  4. Check that each peer accepts the key type before choosing ECDSA, because some SBCs and carriers support RSA only.

How the free check shows it

The Key row lists the key type and size and the signature hash, and fails on an RSA key under 2048 bits or a SHA-1 signature. On a TLS Route these count as weak TLS, the same finding as an old TLS version, shown on Route detail with an optional alert.

See what your server presents. Run a free SIP TLS check

Questions

Should a SIP server use RSA or ECDSA?

ECDSA keys are smaller and faster for the same strength, and P-256 is widely supported. RSA 2048 is the safe choice when a peer's support is unknown, because every SIP stack that does TLS handles it.

Is a 4096-bit RSA key better?

It is stronger than most uses need, and it makes each handshake slower on small devices. RSA 2048 or 3072 is the usual choice for a SIP server.

Does a root certificate signed with SHA-1 matter?

Usually not. Clients trust a root because it is in their store, not because of its signature, so the SHA-1 rule applies to the certificates below the root.

Related problems

Know a line is down before your callers do

Line checks, real test calls and IVR verification for your call-center numbers, with alerts that say whose side failed.

Start free trial

14 days · full Pro features · no credit card