You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ftpserver-users@mina.apache.org by Dan <da...@tipjarawards.com> on 2008/12/17 16:17:23 UTC

SSL for javaftpserver

Hi guys,

Using the FTP server, so far it's been great but I'm trying to use SSL
(Explicit) over port 21. When I use SmartFTP as a client I get the 
trace at the end of this email.

Looks like this is related to your posts about PROT commands or the 
data channel maybe not being encrypted. I can't get any folder/file 
listing due to the 431 Error.

Any ideas/suggestions?

Thanks,

Dan Frank

[14:03:40] 220 Service ready for new user.
[14:03:40] AUTH TLS
[14:03:40] 234 Command AUTH okay; starting TLS connection.
[14:03:40] Connected. Exchanging encryption keys...
[14:03:40] Session Cipher: 128 bit AES [14:03:40] TLS encrypted 
session established.
[14:03:40] Command channel protection set to Private.
[14:03:40] PBSZ 0
[14:03:40] 530 Access denied.
[14:03:40] USER dan
[14:03:40] 331 User name okay, need password for dan.
[14:03:40] PASS (hidden)
[14:03:40] 230 User logged in, proceed.
[14:03:40] SYST
[14:03:40] 215 UNIX Type: Apache FtpServer [14:03:40] Detected Server 
Type: UNIX [14:03:40] RTT: 2.084 ms [14:03:40] FEAT [14:03:40] 
211-Extensions supported [14:03:40]  SIZE [14:03:40]  MDTM [14:03:40]  
REST STREAM [14:03:40]  LANG en;zh-tw;ja;is [14:03:40]  MLST 
Size;Modify;Type;Perm [14:03:40]  AUTH SSL [14:03:40]  AUTH TLS 
[14:03:40]  MODE Z [14:03:40]  UTF8 [14:03:40]  TVFS [14:03:40]  MD5 
[14:03:40]  MMD5 [14:03:40]  MFMT [14:03:40] 211 End [14:03:40] OPTS 
UTF8 ON [14:03:40] 200 Command OPTS okay.
[14:03:40] OPTS MLST Size;Modify;Type;Perm; [14:03:40] 200 Command 
OPTS okay.
[14:03:40] PWD
[14:03:40] 257 "/" is current directory.
[14:03:40] TYPE A
[14:03:40] 200 Command TYPE okay.
[14:03:40] PBSZ 0
[14:03:40] 200 Command PBSZ okay.
[14:03:40] PROT P
[14:03:40] 431 Security is disabled.
[14:03:40] PROT P
[14:03:40] 431 Security is disabled.


Re: SSL for javaftpserver

Posted by Sai Pullabhotla <sa...@jmethods.com>.
Dan,

What version of FTP Server are you running? Are you starting the FTP
Server using the XML configuration or programmatically? If using XML,
can you post the XML? If starting it programmatically, make sure you
have SSL Configuration setup for data connections also.

Regards,

Sai Pullabhotla
Phone: (402) 408-5753
Fax: (402) 408-6861
www.jMethods.com




On Wed, Dec 17, 2008 at 9:17 AM, Dan <da...@tipjarawards.com> wrote:
> Hi guys,
>
> Using the FTP server, so far it's been great but I'm trying to use SSL
> (Explicit) over port 21. When I use SmartFTP as a client I get the
> trace at the end of this email.
>
> Looks like this is related to your posts about PROT commands or the
> data channel maybe not being encrypted. I can't get any folder/file
> listing due to the 431 Error.
>
> Any ideas/suggestions?
>
> Thanks,
>
> Dan Frank
>
> [14:03:40] 220 Service ready for new user.
> [14:03:40] AUTH TLS
> [14:03:40] 234 Command AUTH okay; starting TLS connection.
> [14:03:40] Connected. Exchanging encryption keys...
> [14:03:40] Session Cipher: 128 bit AES [14:03:40] TLS encrypted
> session established.
> [14:03:40] Command channel protection set to Private.
> [14:03:40] PBSZ 0
> [14:03:40] 530 Access denied.
> [14:03:40] USER dan
> [14:03:40] 331 User name okay, need password for dan.
> [14:03:40] PASS (hidden)
> [14:03:40] 230 User logged in, proceed.
> [14:03:40] SYST
> [14:03:40] 215 UNIX Type: Apache FtpServer [14:03:40] Detected Server
> Type: UNIX [14:03:40] RTT: 2.084 ms [14:03:40] FEAT [14:03:40]
> 211-Extensions supported [14:03:40]  SIZE [14:03:40]  MDTM [14:03:40]
> REST STREAM [14:03:40]  LANG en;zh-tw;ja;is [14:03:40]  MLST
> Size;Modify;Type;Perm [14:03:40]  AUTH SSL [14:03:40]  AUTH TLS
> [14:03:40]  MODE Z [14:03:40]  UTF8 [14:03:40]  TVFS [14:03:40]  MD5
> [14:03:40]  MMD5 [14:03:40]  MFMT [14:03:40] 211 End [14:03:40] OPTS
> UTF8 ON [14:03:40] 200 Command OPTS okay.
> [14:03:40] OPTS MLST Size;Modify;Type;Perm; [14:03:40] 200 Command
> OPTS okay.
> [14:03:40] PWD
> [14:03:40] 257 "/" is current directory.
> [14:03:40] TYPE A
> [14:03:40] 200 Command TYPE okay.
> [14:03:40] PBSZ 0
> [14:03:40] 200 Command PBSZ okay.
> [14:03:40] PROT P
> [14:03:40] 431 Security is disabled.
> [14:03:40] PROT P
> [14:03:40] 431 Security is disabled.
>
>