digitaldrew
Well-known member
- Joined
- Nov 10, 2012
- Messages
- 167
- Programming Experience
- Beginner
Hopefully someone can explain this to me a little further..
I'm trying to establish a TCP connection using SSLstream, but constantly receive a certificate error:
Authentication failed because the remote party has closed the transport stream
I know the server uses SSL, but I've never really done anything with certificates before. Here is the code I'm using
I've spoken with support at the company whom I'm trying to connect with, and they've told me the following..
I'm a little confused by their response. I'm not sure how to run the command they are asking for, and I don't have any of the files they are talking about.. Are they saying that I need to be passing these certificates in order to connect with a simple Greeting message like I'm doing above? I'm not that experienced, but I've never heard of that being done before (or seen any examples of it).. Is there any way to ignore or bypass that? Otherwise, could it be that my code is trying to connect using TLS instead of SSL?
Any help or input would be appreciated!
I'm trying to establish a TCP connection using SSLstream, but constantly receive a certificate error:
Authentication failed because the remote party has closed the transport stream
I know the server uses SSL, but I've never really done anything with certificates before. Here is the code I'm using
VB.NET:
Dim DRShost As String = "my.host.net"
Dim client As TcpClient
Dim sslStream As Security.SslStream
Private Sub Thread1_DoWork(ByVal sender As System.Object, ByVal e As System.ComponentModel.DoWorkEventArgs) Handles Thread1.DoWork
Dim client As New TcpClient(DRShost, 700)
Dim sslStream As New Security.SslStream(client.GetStream(), True)
sslStream.AuthenticateAsClient(DRShost)
Try
Dim greeting As String = GetResponse(sslStream, System.Text.Encoding.UTF8)
Catch ex As Exception
msgbox(ex.Message)
End Try
End Sub
I've spoken with support at the company whom I'm trying to connect with, and they've told me the following..
In order to investigate this issue please provide us with response of below mentioned command:
openssl s_client -connect separate.hosthere.net:700 -cert cert.pem -key key.pem -CAfile cacert.pem -showcerts -state
Where:
*cert.pem is the public key (registrar's x.509 certificate). It must be obtained from a accepted Certificate Authorty.
*key.pem - registrar's private key. Used to create a digital signature that is verifiable by anyone with the public key.
*cacert.pem - The Root Certificate for the Certificate Authority that signed your certificate.
Also, we have escalated your request regarding the SSL and TLS version confirmation to appropriate team. We will get back to you as soon as more information becomes available to us.
I'm a little confused by their response. I'm not sure how to run the command they are asking for, and I don't have any of the files they are talking about.. Are they saying that I need to be passing these certificates in order to connect with a simple Greeting message like I'm doing above? I'm not that experienced, but I've never heard of that being done before (or seen any examples of it).. Is there any way to ignore or bypass that? Otherwise, could it be that my code is trying to connect using TLS instead of SSL?
Any help or input would be appreciated!