<div>Ali,</div>
<div> 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> </div>
<div> </div>
<div>//might need to build your trustAllCerts</div>
<div>
<p> SSLContext sc = SSLContext.getInstance("SSL");<br> sc.init(null, trustAllCerts, new java.security.SecureRandom());</p>
<p> System.out.println("*** Start sslSocket............................");<br> SSLSocketFactory sslFactory = sc.getSocketFactory();<br> sslSocket = (SSLSocket) sslFactory.createSocket
(JABBER_SERVER_ADDRESS, JABBER_SERVER_SPORT);<br> sslSocket.setSoTimeout(10000); //10 sec<br> sslSocket.setKeepAlive(true);<br> sslSocket.setUseClientMode(true);<br> sslSocket.startHandshake
();<br> System.out.println("// 2- -------------------- Completed\n\n\n");<br>// ----------------------------- TLS negotiation is ended.<br></p>
<p><br><br> </p></div>
<div><span class="gmail_quote">On 8/9/06, <b class="gmail_sendername">ali</b> <<a href="mailto:marslan.ali@gmail.com">marslan.ali@gmail.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">>Have you looked at RFC 3920?<br><br>><a href="http://www.xmpp.org/specs/rfc3920.html#tls">http://www.xmpp.org/specs/rfc3920.html#tls
</a><br><br>>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> The initiating entity MUST validate the certificate presented by
<br> 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>