Discuss (FTP) and (SFTP, FTPS and SCP), our Java file transfer clients.
no avatar
User

EditFTPProUser

Posts

10

Joined

Fri Jan 27, 2012 10:38 am

by EditFTPProUser » Fri Jan 27, 2012 3:05 pm

I cannot check with my network admin regarding the data port issue until the next 7-8 hours.

But is the following syntax any better than just SSLFTPClient.ConfigFlags.DISABLE_SSL_CLOSURE. I came across it in another posting on this site.

ftp.setConfigFlags(SSLFTPClient.ConfigFlags.DISABLE_SSL_CLOSURE | SSLFTPClient.ConfigFlags.DISABLE_WAIT_ON_CLOSE);
no avatar
User

EditFTPProUser

Posts

10

Joined

Fri Jan 27, 2012 10:38 am

by EditFTPProUser » Fri Jan 27, 2012 3:50 pm

This is probably a silly question but I will ask it anyway.
When I try to connect with FileZilla it asks me to accept the server certitificate. What is it's equivilent step when I am connecting using edit FTP Pro API ? I certainly don't have any references to certificates in my code.

Pretty much like the following

log.info("Creating FTP client");
ftp = new SSLFTPClient();
ftp.setImplicitFTPS(true);
ftp.setRemoteHost("app01.winitucom.com");
ftp.setValidateServer(false);
ftp.setConfigFlags(SSLFTPClient.ConfigFlags.DISABLE_SSL_CLOSURE);
log.info("Setting remote host");
try {
ftp.connect();
log.info("sending auth()");
ftp.auth(SSLFTPClient.PROT_PRIVATE);
log.info("Logging in..... ");
ftp.login("sip.intercity-nl.com","XXXXXXX");
log.info("Setting connect mode..... ");
ftp.setConnectMode(FTPConnectMode.PASV);

log.info("Setting transfer type..... ");
ftp.setType(FTPTransferType.BINARY);
no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

by support2 » Fri Jan 27, 2012 6:33 pm

Full explanation of flags in API reference:

http://www.enterprisedt.com/products/ed ... Flags.html

Calling ftp.setValidateServer(false) disables certificate checking. You can enable it and check the certificate, see

http://www.enterprisedt.com/products/ed ... parta.html
Previous

Who is online

Users browsing this forum: No registered users and 99 guests

Powered by phpBB ® | phpBB3 Style by KomiDesign
cron