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.