= Configuring PJSIP with TLS = == Requirements == The TLS support in PJSIP requires OpenSSL development kit (headers and libs) to be installed. Please see [http://www.pjsip.org/using.htm Getting Started] page for more info. == Build PJSIP with TLS Support == Add this in {{{config_site.h}}}: {{{ #define PJSIP_HAS_TLS_TRANSPORT 1 }}} And rebuild PJSIP. == Running pjsua as TLS Server == 1. You will need to have all three PEM files: a. The root certificate a. The server certificate a. The private key 1. Run pjsua: {{{ $ ./pjsua --use-tls --tls-ca-file root.pem --tls-cert-file server-cert.pem --tls-privkey-file privkey.pem }}} 1. To see more TLS options, run {{{./pjsua --help}}}. == Running pjsua as TLS Client == To make call to SERVER using TLS: {{{ $ ./pjsua --use-tls sip:SERVER;transport=tls }}} To see more TLS options, run {{{./pjsua --help}}}.