Configure TLS for Opensips

Opensips (www.opensips.org) is an well-know open source SIP server which supports TLS.

1. Compile opensips and configuration.

    There are many material can be referred over the web site about the compile & installation. Here just ex

    give a little bit expation about certifictes used by opensips and it's clients.

    rootCA: cacert.pem

    It's a self-signed root CA, was used to signe certificates. Opensips hold this rootCA, if SSL_VERIFY_PEER

    is enabled or the client enabled SSL_VERIFY_SERVER, then the rootCA should also install to client.

 

2. Symbian VoIP clients connect to opensips over TLS.

    The rootCA generated by opensips is txt mode, Symbian use DER (binary mode) certificate. So, if the

    cacert.pem will be used on Symbian device, addation work to convert .pem to .cer should to do by

    openssl x509 -in cacert.pem -out cacert.cer -outform DER

 

3. MiniSIP connect to opensips over TLS

    MiniSIP 0.7 hard code to use SSLv23_client_method as the version of SSL, however, opensips use

    newer SSL version TLSv1_method. To make MiniSIP works with opensips over TLS, just change the SSL

    version was used in MiniSIP by modify such code:

 

    TLSSocket::TLSSocket( IPAddress &addr, int32_t port, void * &ssl_ctx,
        MRef<certificate *> cert, MRef<ca_db *> cert_db )

    {
        type = SOCKET_TYPE_TLS;
        const unsigned char * sid_ctx = (const unsigned char *)"Minisip TLS";
        SSLeay_add_ssl_algorithms();
        SSL_METHOD *meth = TLSv1_client_method();   //SSLv23_client_method();

        ...

    }

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值