Re: [Freeswitch-users] Achieving TLS + SRTP for inbound calls
While waiting for suggestions, I tried more things. In particular, I tested whether gentls_cert was present in our FS install (which is at /opt/freeswitch/ on ubuntu). It is present, but the CA root cert step writes to {prefix}/etc/freeswitch/tls/CA/ instead of {prefix}/conf/ssl/CA/. In particular, the root CA step generates: etc/freeswitch/tls/ cafile.pem etc/freeswitch/tls/CA/ cacert.pem cakey.pem config.tpl And the server cert step generates: etc/freeswitch/tls/ agent.pem etc/freeswitch/tls/CA/ cacert.srl Reviewing agent.pem shows it's fine: openssl x509 -noout -inform pem -text -in /opt/freeswitch/etc/freeswitch/tls/agent.pem But it's owned by user root group root, so: cd /opt/freeswitch/etc/freeswitch/tls/ chmod 640 agent.pem CA/cacert.pem chown root.freeswitch agent.pem CA/cacert.pem Then I edited /opt/freeswitch/etc/freeswitch/vars.xml to set internal_ssl_enable and external_ssl_enable to true. Then I restarted FS. I checked the CLI and it shows "WS SETUP FAILED" repeatedly. *Any suggestion?* Blazing ahead...then I exposed the public IP of the FS machine under a subdomain of the CA root cert's domain. (I used a wildcard subdomain for -org when generating both certs; maybe giving a wildcard this way is unnecessary or counterproductive.) Now, the part that puzzles me: I'm already using a "real CA" cert in order to serve my verto client files over https from my DNS name, so browsers won't show security warnings. But I bet I need to have the same CA root cert installed in FS as I use in the webserver, right? I saw the note that commercial certs should work, but *it's not clear what steps to follow to install one*. Cheers, David On Tue, May 22, 2018 at 9:50 PM, David P <davidswalkabout@gmail.com> wrote:
We use conferences to allow a verto user to call and connect with an Asterisk channel. We would like to secure both signalling and media via TLS + SRTP, and I've read https://freeswitch.org/ confluence/display/FREESWITCH/SIP+TLS a few times to understand how to do this. Note that that page has a broken link: https://wiki.freeswitch.org/ wiki/Secure_RTP
First, is it still true that FS doesn't offer prebuilt installs (for Ubuntu) to support this kind of security?
Assuming that it must be compiled, I began to follow https://freeswitch.org/confluence/display/FREESWITCH/Debian+8+Jessie with the additional first step of: apt-get install libssl-dev
I soon ran into "Unable to locate package freeswitch-video-deps-most".
What should I try next?
Cheers, David
Try something NOT ubuntu. Ubuntu disables some required stuff in their openssl making it unusable for webrtc at least in some versions.
On May 24, 2018, at 1:27 AM, David P <davidswalkabout@gmail.com> wrote:
While waiting for suggestions, I tried more things. In particular, I tested whether gentls_cert was present in our FS install (which is at /opt/freeswitch/ on ubuntu).
It is present, but the CA root cert step writes to {prefix}/etc/freeswitch/tls/CA/ instead of {prefix}/conf/ssl/CA/. In particular, the root CA step generates:
etc/freeswitch/tls/ cafile.pem
etc/freeswitch/tls/CA/ cacert.pem cakey.pem config.tpl
And the server cert step generates:
etc/freeswitch/tls/ agent.pem
etc/freeswitch/tls/CA/ cacert.srl
Reviewing agent.pem shows it's fine: openssl x509 -noout -inform pem -text -in /opt/freeswitch/etc/freeswitch/tls/agent.pem
But it's owned by user root group root, so: cd /opt/freeswitch/etc/freeswitch/tls/ chmod 640 agent.pem CA/cacert.pem chown root.freeswitch agent.pem CA/cacert.pem
Then I edited /opt/freeswitch/etc/freeswitch/vars.xml to set internal_ssl_enable and external_ssl_enable to true.
Then I restarted FS. I checked the CLI and it shows "WS SETUP FAILED" repeatedly. *Any suggestion?*
Blazing ahead...then I exposed the public IP of the FS machine under a subdomain of the CA root cert's domain. (I used a wildcard subdomain for -org when generating both certs; maybe giving a wildcard this way is unnecessary or counterproductive.)
Now, the part that puzzles me: I'm already using a "real CA" cert in order to serve my verto client files over https from my DNS name, so browsers won't show security warnings. But I bet I need to have the same CA root cert installed in FS as I use in the webserver, right? I saw the note that commercial certs should work, but *it's not clear what steps to follow to install one*.
Cheers, David
On Tue, May 22, 2018 at 9:50 PM, David P <davidswalkabout@gmail.com <mailto:davidswalkabout@gmail.com>> wrote: We use conferences to allow a verto user to call and connect with an Asterisk channel. We would like to secure both signalling and media via TLS + SRTP, and I've read https://freeswitch.org/confluence/display/FREESWITCH/SIP+TLS <https://freeswitch.org/confluence/display/FREESWITCH/SIP+TLS> a few times to understand how to do this. Note that that page has a broken link: https://wiki.freeswitch.org/wiki/Secure_RTP <https://wiki.freeswitch.org/wiki/Secure_RTP>
First, is it still true that FS doesn't offer prebuilt installs (for Ubuntu) to support this kind of security?
Assuming that it must be compiled, I began to follow https://freeswitch.org/confluence/display/FREESWITCH/Debian+8+Jessie <https://freeswitch.org/confluence/display/FREESWITCH/Debian+8+Jessie> with the additional first step of: apt-get install libssl-dev
I soon ran into "Unable to locate package freeswitch-video-deps-most".
What should I try next?
Cheers, David
Hi Mike, In today's weekly webinar, you answered a question about enabling video via verto from secured debian jessie FS. I didn't catch all of your answer. I think these webinars are archived, but I don't see an archive at https://freeswitch.org/confluence/display/FREESWITCH/ClueCon+Weekly+Conferen... I searched your confluence, and just found someone else ask the same question: https://freeswitch.org/confluence/display/FREESWITCH/Debian+8+Jessie?focused... I think you said we need to use "mod_av" (as well as mod_verto) but entering that into your confluence searchbox didn't result in a hit. Would you repeat your advice here? Cheers, David
participants (2)
-
David P
-
Michael Jerris