- FreeSWITCH 1.8
- Anthony Minessale II Giovanni Maruzzelli
- 112字
- 2025-04-04 18:52:56
Apache
The first step will be to update the package database, and install the apache2 and ca-certificates packages. The latter package will install the Certification Authorities certs, which may be useful when dealing with SSL.
Then we enable the SSL Apache module, and the default SSL site served via HTTPS.
In the following two lines (here broken over three lines each for easy reading) we use PERL to substitute the filenames and path of SSL/TLS certificate and private key.
In final line we restart Apache.
apt-get update apt-get install apache2 ca-certificates a2enmod ssl a2ensite default-ssl.conf perl -i -pe \ 's|/etc/ssl/certs/ssl-cert-snakeoil.pem|/usr/local/freeswitch/certs/cert.pem|g' \ /etc/apache2/sites-enabled/default-ssl.conf perl -i -pe \ 's|/etc/ssl/private/ssl-cert-snakeoil.key|/usr/local/freeswitch/certs/privkey.pem|g' \ /etc/apache2/sites-enabled/default-ssl.conf service apache2 restart