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

syp

Posts

2

Joined

Tue Jul 20, 2010 11:39 pm

FTPS and Pool with server validation

by syp » Tue Jul 20, 2010 11:57 pm

Hi,

I managed to connect and do everything I wanted with my FTP server using FTPS (SSLFTPClient) and server validation (ftp.getRootCertificateStore().importPEMFile(serverCertFilename);).
Then for performance reasons I decided to use the facilities of FTP connection pool (SecureFileTransferClient) but I am unable to:
1. set server certificate
2. set custom validator (here i want to provide a CN different from the one in the certificate)
3. set connection mode (here i want PASV)
4. set transfer type (here i want ASCII)

I searched the various documentation without success.

Thanks in advance for your help.

Sylvain
no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

Re: FTPS and Pool with server validation

by support2 » Wed Jul 21, 2010 8:34 am

1. set server certificate

loadSSLServerValidation()

2. set custom validator (here i want to provide a CN different from the one in the certificate)

getAdvancedSSLSettings().setSSLServerCommonNames()

3. set connection mode (here i want PASV)

getAdvancedFTPSettings().setConnectMode(FTPConnectMode.PASV)

4. set transfer type (here i want ASCII)

setContentType(FTPTransferType.ASCII);
no avatar
User

syp

Posts

2

Joined

Tue Jul 20, 2010 11:39 pm

by syp » Wed Jul 21, 2010 6:25 pm

Perfect !

Thanks a lot !

Who is online

Users browsing this forum: No registered users and 116 guests

Powered by phpBB ® | phpBB3 Style by KomiDesign