Ive written a simple script to pull in a webpage from a https web server on my local network, however it keeps coming up telling me:-
WebException was unhandled:
The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.
I havnt got a signed certificate installed, so if I manually goto the site using internet explorer I get a certificate error, but I just click continue and it works beutifully.
Is there a simple way to just tell my program to ignore the error and just get on with it?
Dim request As WebRequest = WebRequest.Create("https://192.168.1.7/log/display.php")
request.Credentials = New System.Net.NetworkCredential("tcross", "qwertyuiop")
Dim response As WebResponse = request.GetResponse()
Dim dataStream As Stream = response.GetResponseStream()
Dim reader As New StreamReader(dataStream)
Dim responseFromServer As String = reader.ReadToEnd()
Thanks in advance.