So I have been trying to implement TLS and SRTP on my FreePBX 6.12.65-27. I am using Cisco SPA525G2 endpoints and have followed the guides from multiple sites to try to get it working. I used:
https://wiki.asterisk.org/wiki/display/AST/Secure+Calling+Tutorial
http://t120566.telephony-pbx-asterisk-user.phonetalks.info/tls-srtp-cisco-spa-301-t120566.html
http://www.voip-info.org/wiki/view/SIP+TLS
https://supportforums.cisco.com/document/58981/secure-communications-between-spa-phones-and-asterisk-18-using-tls-and-srtp
I have gone through the steps from the guides and I am getting the error below when I try to apply the config:
Please update your modules and reload Asterisk by browsing to your server.
PHP Fatal error: Uncaught exception ‘Exception’ with message ‘Permissions error on file /etc/asterisk/keys/asterisk.pem - please re-run as root to automatically repair’ in /var/www/html/admin/libraries/BMO/PKCS.class.php:643
Stack trace:
#0 /var/www/html/admin/libraries/BMO/PKCS.class.php(52): PKCS->checkPermissions()
#1 [internal function]: PKCS->__destruct()
#2 {main}
thrown in /var/www/html/admin/libraries/BMO/PKCS.class.php on line 643
I am not a Linux guy so I am not sure what to do to get this issue resolved. I haven’t even started on the SRTP part, because the TLS is what is giving me the error. Any help with this would be greatly appreciated. Or, if anyone knows of an updated guide on settings this up that I have failed to locate using Google, that would also be appreciated.
Thanks.