[SR-Users] Cannot start kamailio with TLS

Adesh Pandey adesh.pandey at myoperator.co
Mon Mar 4 12:56:45 CET 2019

Hi Guys,
After enabling TLS i am getting following error in Kamailio 5.1

 /usr/sbin/kamailio[2214]: ERROR: tls [tls_util.h:42]: tls_err_ret():
load_cert:error:20074002:BIO routines:file_ctrl:system lib
 /usr/sbin/kamailio[2214]: ERROR: tls [tls_util.h:42]: tls_err_ret():
load_cert:error:140DC002:SSL routines:use_certificate_chain_file:system lib
 /usr/sbin/kamailio[2214]: ERROR: <core> [core/sr_module.c:940]:
init_mod_child(): error while initializing module tls
(/usr/lib/x86_64-linux-gnu/kamailio/modules/tls.so) (idx: 0 rank: -127
desc: [main])

My tls.conf is as follows:

method = TLSv1+
verify_certificate = no
require_certificate = no
private_key = /etc/kamailio/keys/my.key.pem
certificate = /etc/kamailio/keys/my.crt.pem
#ca_list = /etc/kamailio/tls/cacert.pem
#crl = /etc/kamailio/tls/crl.pem

# This is the default client domain, settings
# in this domain will be used for all outgoing
# TLS connections that do not match any other
# client domain in this configuration file.
# We require that servers present valid certificate.
#method = TLSv1
verify_certificate = yes
require_certificate = yes

Please hep me to understand and  fix the issue.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20190304/091e4f1c/attachment.html>

More information about the sr-users mailing list