<div>Ali,</div>
<div>&nbsp;&nbsp; I am a newbi to jabber and in the process to build my own client in java, I spent a couple of days until I figured the TLS part, the code is in java and I hope you can apply same to .net</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>//might need to build your trustAllCerts</div>
<div>
<p>&nbsp;&nbsp; SSLContext sc = SSLContext.getInstance(&quot;SSL&quot;);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sc.init(null, trustAllCerts, new java.security.SecureRandom());</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; System.out.println(&quot;*** Start sslSocket............................&quot;);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SSLSocketFactory sslFactory = sc.getSocketFactory();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sslSocket = (SSLSocket) sslFactory.createSocket
(JABBER_SERVER_ADDRESS, JABBER_SERVER_SPORT);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sslSocket.setSoTimeout(10000); //10 sec<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sslSocket.setKeepAlive(true);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sslSocket.setUseClientMode(true);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sslSocket.startHandshake
();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; System.out.println(&quot;// 2- -------------------- Completed\n\n\n&quot;);<br>// -----------------------------&nbsp;&nbsp; TLS negotiation is ended.<br></p>
<p><br><br>&nbsp;</p></div>
<div><span class="gmail_quote">On 8/9/06, <b class="gmail_sendername">ali</b> &lt;<a href="mailto:marslan.ali@gmail.com">marslan.ali@gmail.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">&gt;Have you looked at RFC 3920?<br><br>&gt;<a href="http://www.xmpp.org/specs/rfc3920.html#tls">http://www.xmpp.org/specs/rfc3920.html#tls
</a><br><br>&gt;Peter<br><br><br>Yes i have gone through Use of TLS section of RFE3920 and can't understand<br>these two points how to implement them progrmatically i am programming in<br>VB.Net<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The initiating entity MUST validate the certificate presented by
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;the receiving entity<br><br>i want to know the why to read the certificate presented by <a href="http://jabber.com">jabber.com</a><br><br><br>Muhammad Arslan Ali<br><br></blockquote></div><br>