Example for Connecting SSL Using Secure SDK

To the Ipswitch web site

Ipswitch Forums
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Example for Connecting SSL Using Secure SDKExpand / Collapse
Author
Message
Posted 11/15/2005 2:33:27 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 11/15/2005 2:31:00 PM
Posts: 2, Visits: 1

This is my first try at using the Secure Sdk. I am coding in VB.Net.

I have the example code that comes with the sdk that uses regular FTP. I will be

using "auth SSL".

Overall Processing I think will be:

1. Connection

2. File upload, File Download, Submit various Commands

3. Disconnect

The regular FTP example code covers number 2 and 3.

I think that number 1 has more setup involved and it is not clear to me. I have the

connection set up in the wsftp pro client. But I imagine I need to do it again in code.

a. start with Instantiate new object "WsftpApi" Already in regular ftp example.

b. Point to the Random file "SSLRandomFile"

Note: Use the Ipswitch wsftp pro clients file. i.e. "C:\Documents and

Settings\Chris\Application Data\Ipswitch\WS_FTP\SSL\rand.dat"

c. Point to the Server Certificate db "SSLServerAuthDBPath"

Note: if not set this creates a new local db. But I want to use the one already

created by the wsftp pro client. Just put in the path directory not the specific file

name. i.e. "C:\Documents and Settings\Chris\Application Data\Ipswitch\WS_FTP\SSL\"

d. Point to the Client Certificate, Key certificate, Password

"SetSSLClientCertificate"

Note: I do need this but am having trouble with this erroring. i.e. Parrameters

"C:\Documents and Settings\Chris\Application Data\Ipswitch\WS_FTP\SSL\Certs\Ipswitch

WS_FTP Default Certificate.crt",

"C:\Documents and Settings\Chris\Application Data\Ipswitch\WS_FTP\SSL\Certs\Ipswitch

WS_FTP Default Certificate.key",

"supper secret password"

The password I'm only guessing can be obtained by looking in the ClientCerts.ini

file????

e. Do any specific passive mode verses port mode. Set up ip port ranges and External

Ip address if needed.  Or do it like I have it for the wsftp pro client. If it's

needed to set up before a connection, do the same for the code.

f. Connect it. Use the "CreateUrlConnection" i.e.

"ftp-authssl://CoolUser:WayCoolPassword@123.456.789.101"

I looked at both the connection methods. The one difference that I see is this: the

Url version I don't have to specify port. The SDK figures that out for me.

Is my thinking true about Url connection method???

Do the steps a-f look at all right???????

I am having problems but maybe we can start with this first.

Post #12137
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Dave, Mark Singh, kevin r gillis, Jason Benton, Brandon Felger, Ben Henderson, Tripp Allen, Will Sansbury, Jason Williams, Hush, FTPplanet.com, LDW, Hugh Garber, WUP-PM, mmulryan@ipswitch.com, mswimm, Travis G.

PermissionsExpand / Collapse

All times are GMT -5:00, Time now is 8:20pm

Powered By InstantForum.NET v4.1.4 © 2009
Execution: 0.094. 9 queries. Compression Enabled.