[SR-Users] Problem with TLS config

Rene Montilva renemontilva at gmail.com
Tue Mar 18 22:12:59 CET 2014


Hi List

i'm trying config sip with tls module, my config for module in kamailio.cfg
is this:


#!ifdef WITH_TLS
# ----- tls params -----
modparam("tls", "config", "/etc/kamailio/tls.cfg")
#!endif


in tls.cfg is this:

[server:192.168.1.1:5061]
method = SSLv23
verify_certificate = no
require_certificate = no
private_key = /etc/kamailio/key.pem
certificate = /etc/kamailio/cert.pem

[client:default]
verify_certificate = no
require_certificate = no


But when a reload kamailio

i get the follow error:

Mar 18 16:36:50 softswitch /usr/sbin/kamailio[23330]: ERROR: tls
[tls_domain.c:906]: load_private_key(): TLSs<default>: Unable to load
private key file '/etc/kamailio/cert.pem'


Why try to find '/etc/kamailio/cert.pem' for a private key??
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20140318/8f94b94d/attachment.html>


More information about the sr-users mailing list