<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
<br><br>&gt; Date: Mon, 13 Sep 2010 11:40:33 +0200<br>&gt; From: klaus.mailinglists@pernau.at<br>&gt; To: betergreen@live.com<br>&gt; CC: sr-users@lists.sip-router.org<br>&gt; Subject: Re: [SR-Users] help with tls error :sslv3 alert bad certificate<br>&gt; <br>&gt; <br>&gt; <br>&gt; Am 13.09.2010 11:10, schrieb peter_green lion:<br>&gt; &gt; enable_tls=1<br>&gt; &gt; tcp_async=no<br>&gt; &gt;<br>&gt; &gt; listen=tls:192.168.1.81:5060<br>&gt; <br>&gt; The default is for TLS is port 5061.<br>&gt; <br>&gt; &gt;<br>&gt; &gt; modparam("tls", "tls_method", "TLSv1")<br>&gt; &gt; modparam("tls", "tls_method", "SSLv23")<br>&gt; <br>&gt; You can not use TLS and SSL - only on e or the other. SIP is <br>&gt; standardized with TLSv1. Thus you should remove SSLv23 unless you <br>&gt; explicitely know that the client can not handle TLSv1 (then the client <br>&gt; would be buggy)<br>&gt; <br>&gt; &gt; modparam("tls", "certificate", "ser1_cert.pem")<br>&gt; &gt; modparam("tls", "private_key", "privkey.pem")<br>&gt; &gt; modparam("tls", "ca_list", "cacert.pem")<br>&gt; &gt; modparam("tls", "verify_certificate", 1)<br>&gt; <br>&gt; <br>&gt; &gt; modparam("tls", "require_certificate", 1)<br>&gt; <br>&gt; Here is the problem: You have configured Kamailio to require a client <br>&gt; certificate. Usually the SIP client does not have a TLS client <br>&gt; certificate, thus Kamailio will terminate the TLS connection with <br>&gt; handshake error. Set<br>&gt;     modparam("tls", "require_certificate", 0)<br>&gt; and at least it should work with the "openssl s_client" tool.<br>&gt; <br>&gt; <br>&gt; regards<br>&gt; Klaus<br>&gt; <br>&gt; <br><br>hi Klaus and all,<br>i thing this is bug in openssl, becau i have just install kamailio with tls support in ubuntu server which OS have openssl version 0.9.8k,<br>and i have result as:<br><br>sip client can register with server via tls support(sometime it work and some time it cannot work, or it can register when i restart kamailio)<br><br>if it can register, i can make call but when callee answer, caller change to connect , but callee continue ringring.<br>if callee reject call, caller change to destination busy.<br><br>i can recognize what problem, please suggest ?<br>thanks and regards <br>Peter Green.<br>                                               </body>
</html>