Install certificates on a 3CX PBX

Install certificates on a 3CX PBX

If you wish to assign a valid certificate to 3CX this guide can show you how you can achieve this in a few easy steps.

Prerequisites

  • Debian with SSH enabled and sudo permissions
  • 3CX PBX
  • Valid certificates in pem, crt & key file format
  • Winscp or another SSH copy tool
  • Putty

How to

  1. Open WinSCP and connect to your 3CX PBX
  2. Upload your certs (yourCertificate.crt, yourPrivateKey.key) to your home folder
  3. Logon to your 3CX PBX server via SSH
  4. Copy your certs to the 3CX instance:
    sudo cp /certLocation/yourCertificate.crt /var/lib/3cxpbx/Bin/nginx/conf/Instance1/yourCertificate.crt

    sudo cp /certLocation/yourCertificate.key /var/lib/3cxpbx/Bin/nginx/conf/Instance1/yourPrivateKey.key

  5. Edit your nginx config:
    nano /var/lib/3cxpbx/Bin/nginx/conf/nginx.conf
  6. Edit the following lines with your certificate file and key
    ssl_certificate /var/lib/3cxpbx/Bin/nginx/conf/Instance1/yourCertificate.crt;
    ssl_certificate_key /var/lib/3cxpbx/Bin/nginx/conf/Instance1/yourPrivateKey.key;

  7. Restart the nginx service (or reboot your server)
    sudo systemctl restart nginx

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *