Data Socket: SSL protocol error - WeOnlyDo Discussion board

Data Socket: SSL protocol error (wodFtpDLX / wodFtpDLX.NET)

by Jason Henderson, Friday, September 02, 2005, 23:10 (7021 days ago)

A couple of clients are having problems where PutFile function is failing. We're getting a Data Socket: SSL protocol error (returned from GetLastErrorText method) and I can't find this in the enumerated errors list in the help file.

Can you explain to me what this means?

Re: Data Socket: SSL protocol error

by wodSupport, Friday, September 02, 2005, 23:31 (7021 days ago) @ Jason Henderson

Jason,

does this happen with particular type of FTP(FTP+SSL) server, or different ones? This means that data socket could not negotiate SSL connection.

How can I duplicate that?

Re: Data Socket: SSL protocol error

by Jason Henderson, Tuesday, September 06, 2005, 20:04 (7017 days ago) @ wodSupport

Jason,

does this happen with particular type of FTP(FTP+SSL) server, or different ones? This means that data socket could not negotiate SSL connection.

How can I duplicate that?

Re: Data Socket: SSL protocol error

by Jason Henderson, Wednesday, September 07, 2005, 15:30 (7017 days ago) @ Jason Henderson

We are only using implicit ssl on port 990 right now and we only send to one server. As far as I know, this is the only client reporting this issue.

Our support team is contacting the server to see if something is wrong on their end.

Re: Data Socket: SSL protocol error

by wodSupport, Wednesday, September 07, 2005, 17:49 (7017 days ago) @ Jason Henderson

Jason,

did you try with both Passive property settings (True/False)? Perhaps that will help.

Kreso

Re: Data Socket: SSL protocol error

by Jason Henderson, Wednesday, October 05, 2005, 22:31 (6988 days ago) @ wodSupport

Jason,

did you try with both Passive property settings (True/False)? Perhaps that will help.

Kreso

There is no way for me to set this on the client without rebuilding and sending a new version to them. That's not an option right now.

Is there an internet setting or firewall setting that could be causing this?

Thanks

Re: Data Socket: SSL protocol error

by wodSupport, Wednesday, October 05, 2005, 22:59 (6988 days ago) @ Jason Henderson

Jason,

only thing that comes to my mind is windows firewall, under network connection properties. This is only thing you can change.

Of course, if you have ZoneAlarm or something similar you may want to look there too.

Re: Data Socket: SSL protocol error

by Aram Tutunciyan, Thursday, June 01, 2006, 14:22 (6750 days ago) @ wodSupport

Is the above mentioned problem solved, if so how?

I'm getting a similar error when I try to connect to an FTPS server on port 990 (FTPSimplicit).

The error I get is :

Run-time error '60000':
SSL Protocol Eror

I have no firewall on my system or on the router.

[code]
Private Sub Connect()

With m_FtpDLX
If .State <> Connected Then

.HostName = my.test.host
.Port = 990
.Protocol = ProtocolsEnum.FTPSimplicit
.Encryption = EncryptionsEnum.encAny
.Blocking = True
.Login = username
.Password = password
.Passive = True
.Connect
End If
End With

End Sub
[/code]

Any help is appreciated.

Re: Data Socket: SSL protocol error

by JasonH, Thursday, June 01, 2006, 14:37 (6750 days ago) @ Aram Tutunciyan

I think the reason why I was getting the error is because I had the protocol property set to FTPSwithdata.

After changing to FTPSimplicit the problem went away.

Re: Data Socket: SSL protocol error

by wodDrazen, Thursday, June 01, 2006, 14:43 (6750 days ago) @ JasonH

Hi Jason,


Nice, I did small test with your code on my Serv-U Server and FTPSimplicit protocol and I connect to my server with no problem.


Regards,
Drazen

Re: Data Socket: SSL protocol error

by Aram Tutunciyan, Thursday, June 01, 2006, 14:53 (6750 days ago) @ wodDrazen

I've tested every setting for protocol and encryption can't get the damn thing connected [:sad:]

Re: Data Socket: SSL protocol error

by Aram Tutunciyan, Thursday, June 01, 2006, 14:57 (6750 days ago) @ Aram Tutunciyan

.. I was not finished writing yet [:happy:]

I can connect to the very same server with the FileZilla client.
I use the following settings for the connection:
[code]
Host: some.host
Port: 990
Servertype: FTP over SSL (explicit encryption)
Logontype: Normal
Use passive mode: Yes
[/code]

Now, wat should be the equivalent settings I should use with wodFtpDLX?

Re: Data Socket: SSL protocol error

by wodDrazen, Thursday, June 01, 2006, 14:57 (6750 days ago) @ Aram Tutunciyan

Hi Jason,


In last post you mention that you change protocol to FTPSimplicit and didn't get error any more?
Is this correct or I miss something?


Regards,
Drazen

Re: Data Socket: SSL protocol error

by JasonH, Thursday, June 01, 2006, 15:01 (6750 days ago) @ wodDrazen

Hi Jason,


In last post you mention that you change protocol to FTPSimplicit and didn't get error any more?
Is this correct or I miss something?


Regards,
Drazen

Well, unless I'm thinking of a different error... Let me see if I can search my postings.

Re: Data Socket: SSL protocol error

by JasonH, Thursday, June 01, 2006, 15:05 (6750 days ago) @ JasonH

OK, I made a mistake.

This error was not fixed by changing the protocol property. I was thinking of this forum discussion: http://www.weonlydo.com/index.asp?forum=1&action=view&topic=1143221393.

Apparently, one of our clients is still getting the error, but if they try again immediately it goes through.

Re: Data Socket: SSL protocol error

by wodDrazen, Thursday, June 01, 2006, 15:09 (6750 days ago) @ JasonH

Hi Aram,


Please try something like this:

------------------------------------------------
Set dlx1 = New wodFtpDLXCom

dlx1.HostName = your_server_name
dlx1.Protocol = FTPSimplicit
dlx1.Passive = True
dlx1.Login = your_login
dlx1.Password = your_password
//dlx1.Blocking = True
dlx1.Connect
------------------------------------------------

You can also add Blocking= True just to be sure that you are connected to that server.

More help for Blocking Property find here:
http://www.weonlydo.com/FtpDLX/Help/wodFtpDLXLib~wodFtpDLX~Blocking.html

Hope I helped.


Regards,
Drazen

Re: Data Socket: SSL protocol error

by Aram Tutunciyan, Thursday, June 01, 2006, 15:37 (6750 days ago) @ wodDrazen

Hi Aram,


Please try something like this:

------------------------------------------------
Set dlx1 = New wodFtpDLXCom

dlx1.HostName = your_server_name
dlx1.Protocol = FTPSimplicit
dlx1.Passive = True
dlx1.Login = your_login
dlx1.Password = your_password
//dlx1.Blocking = True
dlx1.Connect
------------------------------------------------

You can also add Blocking= True just to be sure that you are connected to that server.

More help for Blocking Property find here:
http://www.weonlydo.com/FtpDLX/Help/wodFtpDLXLib~wodFtpDLX~Blocking.html

Hope I helped.


Regards,
Drazen


See my first posting with the sourcecode I'm using. Is more or less the same. I use the blocking mode.

Re: Data Socket: SSL protocol error

by wodDrazen, Thursday, June 01, 2006, 15:46 (6750 days ago) @ Aram Tutunciyan

Hi Aram,


It would be best if we can somehow connect to your server and try to duplicate your problem, is this possible?
Please send us your information to techsupport@weonlydo.com if you can.

You can also try to connect to that server with our sample that comes with our component.
Please try with 1.Simple under FtpDLXSamplesVBComponent1. Simple folder.

Hope I helped.


Regards,
Drazen

Re: Data Socket: SSL protocol error

by Aram Tutunciyan, Thursday, June 01, 2006, 16:27 (6750 days ago) @ wodDrazen

Found the problem:

You should first set the protocol and then the port. If you do it the way around, the protocol setting will also adjust the port setting to an default. In my case I needed to communicate on port 990, but the default port for the protocol FTPSnodata seems to be 21.

Maybe a note in the manual about this behaviour could prevent this kind of troubles in the future.

Thanks for all the help.

Re: Data Socket: SSL protocol error

by wodAlan, Thursday, June 01, 2006, 16:32 (6750 days ago) @ Aram Tutunciyan

Aram,

Yes, I agree with you. I presume that Drazen overlooked that.
I will add this immediately in Knowledgebase.

Glad that you resolved your problem.

Regards,
Alan