Discussion:
FTP Client over SSL
(too old to reply)
Dev
2006-04-28 04:58:01 UTC
Permalink
I have to develop comms for Secure FTP for Windows Mobile 2005( Symbol PDA)
as follows:

Host Name: testserver.joshisoft.com (Example)
User Id: 99999911
Password: 99999911
Server Type: FTP/SLL(AUTH SSL)
Host Type: Automatic Detect
Firewall: None
Use Passive Mode for Data Connection
Under SSL - No Client Certificate
Use Unencripted Command Channel after SSL Authentication

Above are parameters I have used with WS_FTP Program and then I can Send &
Receive Files to/from Our Company's Server.
I need to write the application to Transmit & Receive Files with above
parameters.
I will appreciate If anybody can help me on above issue.
Our Development Platform is Visual Studio 2005, PDA O/S: Windows Mobile 5.0
and Development Language is C++ (MFC Native).

Thank you & regards,

Dev
Dev
2006-04-29 08:48:01 UTC
Permalink
Is there anybody who can help me on this please?
<ctacke/>
2006-04-29 11:19:45 UTC
Permalink
What code have you already wriiten? What part of it fails? With what
exception? Right now you're asking us to write you a full FTP client, and I
don't think anyone here is going to do that for you for nothing.

-Chris
Post by Dev
Is there anybody who can help me on this please?
Dev
2006-04-29 11:43:01 UTC
Permalink
I have written following code:

hInternetHandle = InternetOpen(_T("Microsoft Internet Explorer"),
INTERNET_OPEN_TYPE_DIRECT, NULL, NULL, INTERNET_INVALID_PORT_NUMBER);

hFTPHandle = InternetConnect(hInternetHandle, tszFTPServerName,
ipFTPPortNo, tszFTPUserId, tszFTPPassword, INTERNET_SERVICE_FTP,
INTERNET_FLAG_PASSIVE | INTERNET_FLAG_IGNORE_CERT_CN_INVALID |
INTERNET_FLAG_SECURE,
0);

if ( hFTPHandle == 0 )
{
dwError = GetLastError();
InternetCloseHandle(hInternetHandle);
HangUp();
ShowLastError(dwError);
return FALSE;
}

When the application executes InternetConnect() function, I am getting
Invalid Password Error message(Error Code = 12014).

Regards,

Dev
<ctacke/>
2006-04-29 11:52:22 UTC
Permalink
And I replied to you several days ago that SFTP doesn't use the standard
APIs (or more correctly the standard APIs don't have support for SFTP
protocols). There is a working spec out there that describes it (I think I
provided a link to that too, if not Google can find it). You are going to
have to read up on it and implement it or find a 3rd party library for it.

-Chris
Post by Dev
hInternetHandle = InternetOpen(_T("Microsoft Internet Explorer"),
INTERNET_OPEN_TYPE_DIRECT, NULL, NULL, INTERNET_INVALID_PORT_NUMBER);
hFTPHandle = InternetConnect(hInternetHandle, tszFTPServerName,
ipFTPPortNo, tszFTPUserId, tszFTPPassword, INTERNET_SERVICE_FTP,
INTERNET_FLAG_PASSIVE | INTERNET_FLAG_IGNORE_CERT_CN_INVALID |
INTERNET_FLAG_SECURE,
0);
if ( hFTPHandle == 0 )
{
dwError = GetLastError();
InternetCloseHandle(hInternetHandle);
HangUp();
ShowLastError(dwError);
return FALSE;
}
When the application executes InternetConnect() function, I am getting
Invalid Password Error message(Error Code = 12014).
Regards,
Dev
Dev
2006-04-29 12:09:02 UTC
Permalink
Thank you Chris.
I am bit confused. Somebody told me that my FTP Comms are different from
SFTP and I am new to FTP Comms.
Could you send me details(if you know) for Third party Library and I will
buy the Library.

Regards,

Dev

Loading...