Self-signed or untrusted SIP TLS certificate
A self-signed certificate is signed by its own key rather than by a certificate authority, and a private-CA certificate is signed by a CA that only your organisation runs. Both encrypt a SIP connection as well as any public certificate. What they lack is a root that peers already trust, so a peer that verifies certificates rejects them unless someone installed that root by hand.
That is often acceptable inside one network, between a PBX and its own phones or two SBCs run by the same team, where the root can be handed out in advance. It breaks as soon as the other side is a carrier, a cloud contact center or Microsoft Teams, which accept only certificates from CAs on their own lists and will not import yours.
Error messages you may see
self-signed certificateself-signed certificate in certificate chaintlsv1 alert unknown cax509: certificate signed by unknown authorityremote error: tls: unknown certificate authority
Common causes
- The SIP server still uses the self-signed certificate it generated at install time.
- The certificate comes from an internal or enterprise CA whose root was never given to the peer.
- The peer has the private root, but the server sends a chain that ends at a different root or skips a private intermediate.
- A provider or cloud platform accepts only CAs from its own trust list, and yours is not on it.
How to fix it
- Decide who must trust the certificate, and for carriers and cloud platforms replace it with one from a public CA they list.
- For peers you control, install your private root in each peer's trusted CA store, not only on the server.
- When a peer pins one self-signed certificate, renew it well before it expires and update every peer at the same time.
- Compare the issuer the server presents with the root each peer was given, since a mismatch there looks exactly like an untrusted CA.
Platform notes
- Asterisk (PJSIP): On a TLS transport, ca_list_file names the CA certificates Asterisk trusts, and verify_server makes it check the certificates of servers it connects to.
- Kamailio: With verify_certificate on, Kamailio checks the SIP servers it connects to, and the check always fails while ca_list is empty, so a private root has to be added to that list.
- AudioCodes: To trust a private CA, import every certificate in its chain as PEM into the Trusted Root Certificates of the TLS Context in use, which you open from the TLS Contexts table.
- Microsoft Teams Direct Routing: Microsoft states that a self-signed SBC certificate is not valid for Direct Routing. It must come from a CA in the Microsoft Trusted Root Program.
How the free check shows it
The Chain row fails with "Self-signed certificate", or with the issuer's name when a private CA signed it. Our test agent trusts a public root store, so a private root always reads as untrusted here. On a monitored Route you can add that root, or the self-signed certificate itself, as the Route's trusted CA, and PingVo then counts it as trusted.
Questions
Is a self-signed certificate less secure?
The encryption is just as strong. The difference is identity: anyone can make a self-signed certificate for any name, so a peer can only trust it when it was given that exact certificate or root in advance.
Can I use Let's Encrypt for a SIP server?
Yes, if the server has a public DNS name. Its certificates chain to the ISRG roots, which are in common root stores, but check the trust list of each carrier or platform before relying on it.