Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
3.5k views
in Java FTP by (160 points)
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

2 Answers

0 votes
by (162k points)
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);
0 votes
by (160 points)
Perfect !

Thanks a lot !

Categories

...