By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,453 Members | 1,078 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,453 IT Pros & Developers. It's quick & easy.

Help: SSL in PoP3 connection VB.NET 2

P: n/a
Request for assistance:

I'm in process of writing a PoP3 class in VB.NET 2 (VS 2005), and have
successfully managed to create a sub which will create a connection to
a PoP3 server on port 110 to download any waiting messages. I don't
want to use a pre-built component if at all possible. The following
code initiates the connection to the server and opens the stream for
input.
Dim TCP As Net.Sockets.TcpClient
Dim POP3Stream As System.IO.Stream
Dim inStream As System.IO.StreamReader

TCP = New Net.Sockets.TcpClient
TCP.Connect(strServer, 110)

POP3Stream = TCP.GetStream
inStream = New System.IO.StreamReader(POP3Stream)
[etc]

QUESTION: I also need to build SSL functionality into this application
to retreive messages from a service such as Google Email. I've found
the SSLStream class, but I'm unsure of how to implement this as I've
had no experience of native SSL functionality. I wondered if anyone
might be able to assist or point me in the right directions. Thanks
for your help.

Aug 3 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hi there,

The .NET framework only supports SSL for HTTP. If you want to use SSL
for
another protocol, you'll have to use a 3rd party product.

There is / was a free SSL/TLS library for .Net here:

http://www.mentalis.org/soft/projects/seclib/

I hope that this gets you moving in the right direction

Cheers

The Frog

Aug 6 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.