<div><font color="#550055">You are correct, so just for the trial purposes if I want the TLS handshake to be successful what credentials for the client should I use? i.e. can I do something like:</font></div>
<div><font color="#550055"></font>&nbsp;</div>
<div><font color="#550055">openssl s_client <font color="#550055">-cert user-cert.pem -key user-privkey.pem -state -connect <a href="http://10.30.00.41:5061">10.30.00.41:5061</a></font></font></div>
<div>&nbsp;</div>
<div>on doing this it comes back with an error saying Verify Return Code: 21 (Unable to verify the first certificate), Should I be using new certificates or with the same set of certificates I can achive a successful handshake?
</div>
<div>&nbsp;</div>
<div>Thanks a lot..</div>
<div>Ncheeku<br>&nbsp;</div>
<div><span class="gmail_quote">On 12/29/06, <b class="gmail_sendername">Steffen Witt</b> &lt;<a href="mailto:witt.steffen@googlemail.com">witt.steffen@googlemail.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hello,<br><br>openssl can play client and/or server role.<br><br><br>Best regards,<br>Steffen<br><br><br>2006/12/29, Ncheeku Baranov &lt;
<a href="mailto:opensersubscribe@gmail.com">opensersubscribe@gmail.com</a>&gt;:<br>&gt; Thanks Steffen. Is there any freely available tls client which can be used<br>&gt; to check this settings and the handshake? That will be really helpful..
<br>&gt;<br>&gt; Best regards,<br>&gt; NCheeku<br>&gt;<br>&gt;<br>&gt;<br>&gt; On 12/28/06, Steffen Witt &lt;<a href="mailto:witt.steffen@googlemail.com">witt.steffen@googlemail.com</a>&gt; wrote:<br>&gt; &gt; Hello Ncheeku,
<br>&gt; &gt;<br>&gt; &gt; change to the directory with your &quot;.pem&quot; files:<br>&gt; /usr/local/etc/openser/tls/user<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; Then you can test your TLS handshake with the following command:
<br>&gt; &gt;<br>&gt; &gt; openssl s_server -cert user-cert.pem -key user-privkey.pem -state -accept<br>&gt; 5061<br>&gt; &gt;<br>&gt; &gt; Openssl simulates a TLS server with your certificate/private key files<br>&gt; &gt; and it accepts only requests at port 5061.
<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; Best regards,<br>&gt; &gt; Steffen<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; 2006/12/28, Ncheeku Baranov &lt;<a href="mailto:opensersubscribe@gmail.com">opensersubscribe@gmail.com
</a>&gt;:<br>&gt; &gt; &gt; Thanks a lot Steffen. Adding the new listen = udp: <a href="http://10.30.100.41:5060">10.30.100.41:5060</a><br>&gt; indeed<br>&gt; &gt; &gt; worked. How can I check the TLS handshake using openssl at the server?
<br>&gt; &gt; &gt; Thanks a lot..<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; On 12/28/06, Steffen Witt &lt; <a href="mailto:witt.steffen@googlemail.com">witt.steffen@googlemail.com</a>&gt; wrote:
<br>&gt; &gt; &gt; &gt; Hello again,<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; maybe you should add the following line to test your non-TLS UAs:<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; disable_tls = 0<br>&gt; &gt; &gt; &gt; listen = udp:
<a href="http://10.30.100.41:5060">10.30.100.41:5060</a>&nbsp;&nbsp; &lt;---<br>&gt; &gt; &gt; &gt; listen = tls:<a href="http://10.30.100.41:5061">10.30.100.41:5061</a><br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; You can check your TLS handshake by simulating your server with
<br>&gt; openssl.<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; Please have a look at the following link that describes the TLS<br>&gt; support:<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; <a href="http://www.openser.org/docs/tls.html">
http://www.openser.org/docs/tls.html</a><br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; Best regards,<br>&gt; &gt; &gt; &gt; Steffen<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt;
<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; 2006/12/28, Ncheeku Baranov &lt; <a href="mailto:opensersubscribe@gmail.com">opensersubscribe@gmail.com</a>&gt;:<br>&gt; &gt; &gt; &gt; &gt; Hi,<br>&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; I am trying to make my non-TLS/TLS UA register with my TLS enabled<br>&gt; &gt; &gt; openSER.<br>&gt; &gt; &gt; &gt; &gt; Currently I am just working on my local machine with the client UAs<br>&gt; on
<br>&gt; &gt; &gt; the<br>&gt; &gt; &gt; &gt; &gt; same subnet,(so there is only one domain, but its not named). Below<br>&gt; is<br>&gt; &gt; &gt; my<br>&gt; &gt; &gt; &gt; &gt; configuration file:<br>&gt; &gt; &gt; &gt; &gt;
<br>&gt; &gt; &gt; &gt; &gt; disable_tls = 0<br>&gt; &gt; &gt; &gt; &gt; listen = tls:<a href="http://10.30.100.41:5061">10.30.100.41:5061</a><br>&gt; &gt; &gt; &gt; &gt; tls_verify_server = 1<br>&gt; &gt; &gt; &gt; &gt; tls_verify_client = 0
<br>&gt; &gt; &gt; &gt; &gt; tls_require_client_certificate = 0<br>&gt; &gt; &gt; &gt; &gt; tls_method = TLSv1<br>&gt; &gt; &gt; &gt; &gt; tls_certificate =<br>&gt; &gt; &gt; &quot;/usr/local/etc/openser/tls/user/user-<br>
&gt; &gt; &gt; &gt; &gt; cert.pem&quot;<br>&gt; &gt; &gt; &gt; &gt; tls_private_key =<br>&gt; &gt; &gt; &quot;/usr/local/etc/openser/tls/user/user-<br>&gt; &gt; &gt; &gt; &gt; privkey.pem&quot;<br>&gt; &gt; &gt; &gt; &gt; tls_ca_list =
<br>&gt; &gt; &gt; &gt; &gt; &quot;usr/local/etc/openser/tls/user/user-calist.pem&quot;<br>&gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt; However, with the above configuration the client UAs couldnot<br>&gt; register
<br>&gt; &gt; &gt; and I<br>&gt; &gt; &gt; &gt; &gt; got 408 Request Time out Message. Is there any field that is missing<br>&gt; to<br>&gt; &gt; &gt; make<br>&gt; &gt; &gt; &gt; &gt; this simple scenario work? What should be the values of
<br>&gt; &gt; &gt; &quot;tls_client_domain&quot;<br>&gt; &gt; &gt; &gt; &gt; and &quot;tls_server_domain&quot; fields in this case?<br>&gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt; I noticed that when I start the openSER without TLS support using
<br>&gt; &gt; &gt; &gt; &gt; &quot;openserctl start&quot; and do &quot;ps -e&quot; after that, there are more openSER<br>&gt; &gt; &gt; &gt; &gt; processes running than if I start openSER with TLS support in which<br>&gt; case
<br>&gt; &gt; &gt; I<br>&gt; &gt; &gt; &gt; &gt; see very few of these processes running.<br>&gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt; Your help is much appreciated....<br>&gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt; Best regards,
<br>&gt; &gt; &gt; &gt; &gt; NCheeku<br>&gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt; _______________________________________________<br>&gt; &gt; &gt; &gt; &gt; Users mailing list<br>&gt; &gt; &gt; &gt; &gt; <a href="mailto:Users@openser.org">
Users@openser.org</a><br>&gt; &gt; &gt; &gt; &gt; <a href="http://openser.org/cgi-bin/mailman/listinfo/users">http://openser.org/cgi-bin/mailman/listinfo/users</a><br>&gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt; &gt;<br>&gt;<br>&gt;<br></blockquote></div><br>