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)