[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Secure FTP using FTPAPI



Sender: Scott Klement <sk@xxxxxxxxxxxxxxxx>


I haven't fully read the specs for secure FTP. I imagine there are a few extra commands that are used when negotiating data channels over SSL. You'd have to look into these.


To actually do the SSL connections, you'd probably want to create two separate "communication drivers" for FTPAPI. This is how I did it with HTTPAPI, I wrote these "driver modules" that do the network communications, and I dynamically select which one I want to use based on the URL passed in. It wouldn't be too hard to do the same thing for FTPAPI, in my opinion.

Of course, you'd have to understand the code in FTPAPI well enough to know what needs to be done. Not a problem for me, of course, but it might be for you...

---
Scott Klement  http://www.scottklement.com

On Wed, 28 Sep 2005, Mark S Siddall wrote:

It is just another FTP server setup using SSL. When I connect interactively I must issue the FTP CL command as follows...


FTP RMTSYS('xxx.xxx.xxx.xxx') PORT(*SECURE) SECCNN(*IMPLICIT)

To connect in batch I have been using a script to connect which looks something like this...
----------------------------------------------- open XXX.XXX.XXX.XXX 990


login MyUserID MyPassword

ascii
namefmt 1
get RemoteTextFile.txt  /QSYS.LIB/QGPL.LIB/MYFILE.FILE (REPLACE
lcd /home/MyFolder
get RemoteRtfFile01.rtf          (REPLACE
get RemoteRtfFile02.rtf          (REPLACE
get RemoteRtfFile03.rtf          (REPLACE
quit
------------------------------------------------

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubsribe from the list send mail
to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
-----------------------------------------------------------------------