Re: ftp user ssl - WeOnlyDo Discussion board

Re: ftp user ssl (General questions)

by Ed Weijma, Monday, May 14, 2012, 16:02 (4574 days ago) @ wodDamir

Damba,

Apologize for my answers. By using GUI I mean the graphical user Inferface. In our company we are using GlobalSCAPE CuteFTP as GUI and in my answers I refer to that gui. We are not allowed to use any other gui as CuteFTP and in that gui I refer to the site properties with use SSL Inplicit (port 990). Also in that gui I use global settings for my certificate and private key.

I can understand that the error is unusual for you. I send you my script that gave the protocol error. Maybe this is helpfull for you?

Option Explicit

Const ForAppend = 8

Dim objFTP, lst, cert, certificate, authCertificate
Dim Logfile, fsobject


sub Log(txt)
Logfile.writeline now & & txt
end sub

Set objFTP = WScript.CreateObject( WeOnlyDo.wodFtpDLXCom.1 , wod_ )

Sub wod_Connected(ErrorCode, ErrorText)
If not ErrorCode = 0 then
wscript.quit 1
End If
End Sub

Sub wod_Done(ErrorCode, ErrorText)
If not ErrorCode = 0 then
wscript.quit 1
End If
End Sub

Set cert = WScript.CreateObject( WeOnlyDo.Certificate.1 )

Set objFTP = WScript.CreateObject( WeOnlyDo.wodFtpDLXCom.1 , wod_ )

Set objFTP.Certificate = cert

cert.Loadkey D:install st.rsa , password
cert.Load D:install st.cer , password

objFTP.Hostname = username
objFTP.Protocol = 4
objFTP.Port = 990
objFTP.Passive = 1
objFTP.Authentication = authCertificate
objFTP.Login = username
objFTP.Password = password

objFTP.Blocking = 1

objFTP.Connect

objFTP.GetFiles d:AZR-NLALG , /
objFTP.Disconnect

Thannks Ed

Ed,

What are you referring to as gui ? Gui as in .ocx, or gui application you made? Or gui, as in our sample?

You need to provide us more details. Please have in mind that I don't see the issue you're experiencing. Is there any chance we can reproduce this?

The error you're receiving is usual when i.e. SSH is used instead of FTPS where FTPS should be used.

Regards,
Damba


Complete thread: