0

I got tasked with changing our services that connect to an outside data warehouse to change our connections to TLS. I have searched the web over and have not found any simple examples on how to implement it. The previous programmers set the services up like the following. I will be the first to admit I have never done secure connections so all this is new to me. Any help would be much appreciated!

Imports System
Imports System.Net
Imports System.IO
Imports System.Text
Imports System.Net.Sockets

m_objClientSocket = New Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp)
        Dim ep As New IPEndPoint(Dns.Resolve(m_sRemoteHost).AddressList(0), m_iRemotePort)
        m_objClientSocket.Connect(ep)
user1243474
  • 33
  • 1
  • 9

1 Answers1

1

Someone asked a similar question here in which an answer directed people to this article on CodeProject. This project is in turn based on the OpenSSL library.

You can also take a look at the SslStream class in the System.Net.Security namespace. For example, see this excellent question and answer.

Community
  • 1
  • 1
Paul Williams
  • 16,585
  • 5
  • 47
  • 82
  • Yes I already looked through that example and I had a hard time understanding it. There must be something simpler out there. – user1243474 Mar 28 '12 at 16:31
  • After even more searching everything is saying I need a 3rd party product for secure FTP? Is this correct? – user1243474 Mar 28 '12 at 17:11
  • It's been a long time since I had to implement SSL myself. When I did it, I had to use a 3rd party product. However, I noted the SSL support in the System.Net.Security namespace. See the question I linked for an answer with a step-by-step tutorial. – Paul Williams Mar 28 '12 at 19:39