You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Jose Juan Montiel <jo...@gmail.com> on 2012/03/21 14:25:34 UTC
[vfs] FTPS
Hi,
i'm trying to use VFS to connect to VSFTP server with FTPS (Explict)
with a sample cert.
If i follow sample use... finally i receive a "522 Data connections
must be encrypted."
If i use sample FTPS cliente with commons-net i receive same message, but with
ftps = new FTPSClient(protocol);
...
ftps.execPROT("P");
solve, seem like this force ssl traffic.
How can i do this with VFS, any idea?
PD: VFS code is like this...
FileSystemManager mgr = VFS.getManager();
FileSystemOptions opts = new FileSystemOptions();
FtpsFileSystemConfigBuilder ffscb = FtpsFileSystemConfigBuilder.getInstance();
ffscb.setPassiveMode(opts, true);
ffscb.setFtpsType(opts,"explicit");
...
FileObject sourceFile = mgr.resolveFile(args[0]);
String urlConn = getUrlWithOutCredentials(args[2]);
... urlConn is "ftps:/...."
FileObject destinationFile = mgr.resolveFile(urlConn+args[1], opts);
Thanks in advance.
--
This is your badness level.
It's unusually high for someone your size.
We have to fix that.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org
Re: [vfs] FTPS
Posted by Gary Gregory <ga...@gmail.com>.
Did you figure this out?
Gary
On Wed, Mar 21, 2012 at 9:25 AM, Jose Juan Montiel <
josejuan.montiel@gmail.com> wrote:
> Hi,
>
> i'm trying to use VFS to connect to VSFTP server with FTPS (Explict)
> with a sample cert.
>
> If i follow sample use... finally i receive a "522 Data connections
> must be encrypted."
>
> If i use sample FTPS cliente with commons-net i receive same message, but
> with
>
> ftps = new FTPSClient(protocol);
> ...
> ftps.execPROT("P");
>
> solve, seem like this force ssl traffic.
>
> How can i do this with VFS, any idea?
>
> PD: VFS code is like this...
>
> FileSystemManager mgr = VFS.getManager();
> FileSystemOptions opts = new FileSystemOptions();
> FtpsFileSystemConfigBuilder ffscb =
> FtpsFileSystemConfigBuilder.getInstance();
> ffscb.setPassiveMode(opts, true);
> ffscb.setFtpsType(opts,"explicit");
> ...
> FileObject sourceFile = mgr.resolveFile(args[0]);
> String urlConn = getUrlWithOutCredentials(args[2]);
> ... urlConn is "ftps:/...."
> FileObject destinationFile =
> mgr.resolveFile(urlConn+args[1], opts);
>
> Thanks in advance.
>
> --
> This is your badness level.
> It's unusually high for someone your size.
> We have to fix that.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> For additional commands, e-mail: user-help@commons.apache.org
>
>
--
E-Mail: garydgregory@gmail.com | ggregory@apache.org
JUnit in Action, 2nd Ed: <http://goog_1249600977>http://bit.ly/ECvg0
Spring Batch in Action: <http://s.apache.org/HOq>http://bit.ly/bqpbCK
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory