Hi all,
I have tried several configure TLS in kamailio but no luck.
Please give me some suggestion that I can make it work correctly.
This is my configure in TLS module.
modparam("tls", "tls_method", "SSLv23")
modparam("tls", "private_key",
"/usr/local/etc/kamailio/ca/privkey.pem")
modparam("tls", "certificate",
"/usr/local/etc/kamailio/ca/kamailio1_cert.pem")
modparam("tls", "ca_list",
"/usr/local/etc/kamailio/ca/calist.pem")
modparam("tls", "verify_certificate", 1)
modparam("tls", "require_certificate", 1)
I am only getting issue with verify_certifiate = 1, it i let it to 0, my
client can register correctly.
When I set this flag, i got message from server as:
Dec 18 10:26:31 17237 /usr/local/sbin/kamailio[12655]: ERROR: <core>
[tcp_read.c:1279]: tcp_read_req(): ERROR: tcp_read_req: error reading
Dec 18 10:26:46 17237 /usr/local/sbin/kamailio[12656]: ERROR: tls
[tls_server.c:1193]: tls_read_f(): TLS accept:error:140890C7:SSL
routines:SSL3_GET_CLIENT_CERTIFICATE:peer did not return a certificate
Dec 18 10:26:46 17237 /usr/local/sbin/kamailio[12656]: ERROR: <core>
[tcp_read.c:1279]: tcp_read_req(): ERROR: tcp_read_req: error reading
I Cant add any pem file into client, i have used Blink phone but no luck.
Thank all in advance.
ThanhTruong.