Skip to content
Go back

Enable TLS in FusionPBX with Let's Encrypt

banner

πŸ” Enable TLS in FusionPBX (Updated & Corrected Guide)

This guide explains how to enable TLS for SIP (internal and external profiles) in FusionPBX using Let’s Encrypt certificates, ensuring secure SIP communication over TLS.


⚠️ Prerequisites

Before starting, ensure the following requirements are met:

❗ Important: Let’s Encrypt does NOT issue certificates for IP addresses or private domains.


1️⃣ Generate TLS Certificate (Let’s Encrypt)

Navigate to the Let’s Encrypt script directory:

cd /usr/src/fusionpbx-install.sh/debian/resources

Run the certificate generation script:

./letsencrypt.sh

Enter the required details when prompted:

Domain Name: pbx.example.com
Email Address: admin@example.com

Once the script completes successfully, the TLS certificates will be generated and installed for FreeSWITCH.


2️⃣ Enable TLS for SIP Profiles

Open the FusionPBX web interface and navigate to:

Advanced β†’ Variables

Update the following variables:

Variable NameValue
external_ssl_enabletrue
internal_ssl_enabletrue

Save the changes.


3️⃣ Reload Configuration and Restart SIP Profiles

To apply the TLS changes, go to:

Advanced β†’ SIP Status β†’ Command

Execute the following commands:

reloadxml
sofia profile internal restart
sofia profile external restart

4️⃣ Verify TLS Profiles

Navigate to:

Status β†’ SIP Status

You should now see the following SIP profiles:

You can also verify using the command line:

sofia status

5️⃣ Change TLS SIP Port (Optional)

If you want to change the TLS SIP port, navigate to:

Advanced β†’ SIP Profiles β†’ internal-tls / external-tls

Search for the parameter:

tls-sip-port

Update the port as required, then restart the SIP profiles:

sofia profile internal restart
sofia profile external restart


Share this post on:

Previous Post
Install Qt 6.8.0 Offline on Ubuntu
Next Post
How to Configure FreeSWITCH ESL for External Access