From user-return-27748-apmail-commons-user-archive=commons.apache.org@commons.apache.org Fri Sep 7 13:02:32 2012 Return-Path: X-Original-To: apmail-commons-user-archive@www.apache.org Delivered-To: apmail-commons-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 542DFD534 for ; Fri, 7 Sep 2012 13:02:32 +0000 (UTC) Received: (qmail 27129 invoked by uid 500); 7 Sep 2012 13:02:31 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 26903 invoked by uid 500); 7 Sep 2012 13:02:30 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 26882 invoked by uid 99); 7 Sep 2012 13:02:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Sep 2012 13:02:30 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of rajika@wso2.com designates 209.85.215.43 as permitted sender) Received: from [209.85.215.43] (HELO mail-lpp01m010-f43.google.com) (209.85.215.43) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Sep 2012 13:02:25 +0000 Received: by lagm14 with SMTP id m14so2190413lag.30 for ; Fri, 07 Sep 2012 06:02:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:x-gm-message-state; bh=JSPZIJ3D9GqRBbIJJsiv1mGNl0PIQi7fGc0v2FhanEw=; b=QeNPgfme0cOhvwtNXbJ9iEYC2RcLc3y/39RNWChm1pnDZTt+LN6wsOKIkE/XLQcGi/ 7qI0DjP1xPiMXnkHOHvc1rpcD+3M44bySqFRvJHpWMp62rYlXpQmJv/2TD5Mg4DbD4B4 SwozLsdU/UH7YxdZcPDAlmyIuesejQGSivRS0A1DI8ZgFDOgSoPcshARUb4oT7zCkDxG /7lCUGffBiBS1pjMsQ4su6qo0DdEYNjOEyHXK9WGKWp0A7/bwQ7oQ37e58EgwsKvQTgI 1RBJQn0OUhu4T6AM7KIIXyrEby+bXGEFHuhXR7yu2xc5Nr05OJ8XkO696G8NAwEWmc2q ovzA== MIME-Version: 1.0 Received: by 10.112.29.7 with SMTP id f7mr2075262lbh.52.1347022923093; Fri, 07 Sep 2012 06:02:03 -0700 (PDT) Received: by 10.114.20.163 with HTTP; Fri, 7 Sep 2012 06:02:03 -0700 (PDT) In-Reply-To: <5049EA3A.1070008@metaphysis.net> References: <5049EA3A.1070008@metaphysis.net> Date: Fri, 7 Sep 2012 18:32:03 +0530 Message-ID: Subject: Re: [VFS] FTPS problem From: Rajika Kumarasiri To: Commons Users List Content-Type: multipart/alternative; boundary=bcaec55556ccd5d6c904c91c3664 X-Gm-Message-State: ALoCoQkX5Er7PsguakF3ugIXDR/k6mnJpw/pFqGiue5rSvLkvsqqxl6X6TxJz29q3H7Gke00QIAj X-Virus-Checked: Checked by ClamAV on apache.org --bcaec55556ccd5d6c904c91c3664 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thank you for your reply. I will post any questions, if any here. Rajika On Fri, Sep 7, 2012 at 6:06 PM, Andreas Prie=DF wrote: > Look here > https://issues.apache.org/jira/browse/VFS-412 > > and in the list archive the Thread "[vfs] FTPS" on 23.04.2012 and before. > > HTH > Andreas > > > On 07.09.2012 12:01, Rajika Kumarasiri wrote: > > hello, > > > > I am trying to use the FTPS(SSL over FTP) support in commons-vfs. I tri= ed > > to resolve a folder in proftpd ftp server(configured only to accept SSL > for > > control and data). I have the following simple code. > > > > // start of source > > > > FTPSTest ftpsTest =3D new FTPSTest(); > > StandardFileSystemManager fsm =3D > ftpsTest.getFileSystemManager(); > > > > FileObject file =3D > > fsm.resolveFile("ftps://ftpuser:user123@localhost/test"); > > > > FileObject[] children =3D file.getChildren(); > > > > // end of source > > > > When I tried this FTPs client it fails with an error on server - SSL/TL= S > > required but absent on data channel, denying LIST command. > > > > I did some debugging and USER, PASS, PORT command was > > invoked successfully and user was able to log in. When tries to resolve > the > > folder it fails with the above error. As the error says it seems there = is > > no SSL/TLS connections from the client when trying to list the > folder(when > > I turn off SSL/TLS for data channel things worked as expected). > > > > I looked at the org.apache.commons.vfs2.provider.ftps.FTPSClientFactory= I > > didn't see any place where the FTPSClient#setKeyManager/TrustManager is > > used(although trust store manager is initiated). I was wondering if > anybody > > has got to work the FTPS support in commons-vfs. I have the SSL debug l= og > > of the client side as well. > > > > Rajika > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@commons.apache.org > For additional commands, e-mail: user-help@commons.apache.org > > --bcaec55556ccd5d6c904c91c3664--