Hi,
Today I have tried using Jscape and it is working
fine. Your configuration file looks good except one
thing - you need to comment socket-factory/address
configuration parameter. Please find the attached
configuration file.
There are few things I am assuming.
1. The certificate has not been expired.
2. You have selected Jscape "FTP/SSL (AUTH TLS)"
connection type.
3. You have specified proper configuration type (XML).
4. You have the latest binary distribution file.
The ftpserver project site was not updated. Now I have
updated it. After 4/5 hours it will be published. The
site URL is http://incubator.apache.org/ftpserver
Thanks,
Rana Bhattacharyya
--- "Roopa Trivedi (rotrived)" <[EMAIL PROTECTED]>
wrote:
> Hi,
> I'm interested in using the FTPServer located on
> Apache's Incubator. I
> have downloaded it and I'm trying the secure mode,
> using explicit
> security.
>
> I have got the Jscape secure client for the client
> piece, but when I run
> the FTPServer in secure mode, I get a connection
> refused error.
>
> I may not have configured the SSL parameters
> correctly in the
> configuration file of the FTPServer. Is there some
> more info on how to
> do that? I copied over the sample .xml config file
> and uncommented the
> socket-connection and data-connection.ssl sections.
> I assumed that since
> they all have default values, those should work. I
> have also tried
> various other combinations, uncommenting the whole
> data-connection
> section and not just the .ssl section, but nothing
> seems to work.
>
> Please clarify if I'm missing something. Any help
> would be very much
> appreciated.
> Thanks,
> Roopa
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>
__________________________________
Start your day with Yahoo! - Make it your home page!
http://www.yahoo.com/r/hs
<?xml version="1.0"?>
<!-- XML file based configuration -->
<config>
<!-- Standard socket factory. If you want to support explicit
secure connection, please specify the ssl block -->
<socket-factory>
<class>org.apache.ftpserver.socketfactory.FtpSocketFactory</class>
<!-- <address>localhost</address> -->
<port>21</port>
<ssl>
<keystore-file>./res/.keystore</keystore-file>
<keystore-password>password</keystore-password>
<keystore-type>JKS</keystore-type>
<keystore-algorithm>SunX509</keystore-algorithm>
<ssl-protocol>TLS</ssl-protocol>
<client-authentication>false</client-authentication>
<key-password>password</key-password>
</ssl>
</socket-factory>
<!-- Secure server socket factory. In this case you have to
specify the ssl block
<socket-factory>
<class>org.apache.ftpserver.socketfactory.SSLFtpSocketFactory</class>
<address>localhost</address>
<port>21</port>
<ssl>
<keystore-file>./res/.keystore</keystore-file>
<keystore-password>password</keystore-password>
<keystore-type>JKS</keystore-type>
<keystore-algorithm>SunX509</keystore-algorithm>
<ssl-protocol>TLS</ssl-protocol>
<client-authentication>false</client-authentication>
<key-password>password</key-password>
</ssl>
</socket-factory>
-->
<!-- Data connection configuration. If you want to support secure
data connection, please specify the ssl block. -->
<data-connection>
<pasv-address>localhost</pasv-address>
<pasv-port>0</pasv-port>
<port-enable>true</port-enable>
<port-ip-check>false</port-ip-check>
<ssl>
<keystore-file>./res/.keystore</keystore-file>
<keystore-password>password</keystore-password>
<keystore-type>JKS</keystore-type>
<keystore-algorithm>SunX509</keystore-algorithm>
<ssl-protocol>TLS</ssl-protocol>
<client-authentication>false</client-authentication>
<key-password>password</key-password>
</ssl>
</data-connection>
<!-- Standard users admin and anonymous will be created by default.
<create-default-user>true</create-default-user>
-->
<!-- Ftp message configuration block
<message>
<class>org.apache.ftpserver.message.MessageResourceImpl</class>
<custom-message-dir>./res</custom-message-file>
<languages>en,zh-tw</languages>
</message>
-->
<!-- Connection service configuration block
<connection-service>
<max-connection>20</max-connection>
<max-login>10</max-login>
<anonymous-login-enabled>true</anonymous-login-enabled>
<max-anonymous-login>10</max-anonymous-login>
<default-idle-time>60</default-idle-time>
<connection-poll-inverval>60</connection-poll-inverval>
</connection-service>
-->
<!-- IP restrictor configuration block
<ip-restrictor>
<class>org.apache.ftpserver.iprestrictor.FileIpRestrictor</class>
<file>./res/ip.gen</file>
</ip-restrictor>
-->
<!-- Default properties file based user manager configuration block
<user-manager>
<class>org.apache.ftpserver.usermanager.PropertiesUserManager</class>
<admin>admin</admin>
<prop-file>./res/user.gen</prop-file>
<prop-password-encrypt>true</prop-password-encrypt>
</user-manager>
-->
<!-- Database based user manager configuration
<user-manager>
<class>org.apache.ftpserver.usermanager.DbUserManager</class>
<admin>admin</admin>
<jdbc-driver>org.gjt.mm.mysql.Driver</jdbc-driver>
<jdbc-url>jdbc:mysql://localhost:3306/data</jdbc-url>
<jdbc-user>user</jdbc-user>
<jdbc-password>password</jdbc-password>
<sql-user-insert>INSERT INTO FTP_USER (uid, userpassword, homedirectory, enableflag, writepermission, idletime, uploadrate, downloadrate) VALUES ('{uid}', '{userpassword}', '{homedirectory}', '{enableflag}', '{writepermission}', {idletime}, {uploadrate}, {downloadrate})</sql-user-insert>
<sql-user-update>UPDATE FTP_USER SET userpassword='{userpassword}',homedirectory='{homedirectory}',enableflag='{enableflag}',writepermission='{writepermission}',idletime={idletime},uploadrate={uploadrate},downloadrate={downloadrate} WHERE uid='{uid}'</sql-user-update>
<sql-user-delete>DELETE FROM FTP_USER WHERE uid = '{uid}'</sql-user-delete>
<sql-user-select>SELECT uid, userpassword, homedirectory, enableflag, writepermission, idletime, uploadrate, downloadrate FROM FTP_USER WHERE uid = '{uid}'</sql-user-select>
<sql-user-select-all>SELECT uid FROM FTP_USER ORDER BY uid</sql-user-select-all>
<sql-user-authenticate>SELECT uid from FTP_USER WHERE uid='{uid}' AND userpassword='{userpassword}'</sql-user-authenticate>
<sql-user-admin>SELECT uid FROM FTP_USER WHERE uid='{uid}' AND uid='admin'</sql-user-admin>
</user-manager>
-->
<!-- LDAP based user manager
<user-manager>
<class>org.apache.ftpserver.usermanager.LdapUserManager</class>
<admin>admin</admin>
<ldap-url>ldap://localhost:389</ldap-url>
<ldap-admin-dn>cn=Manager,dc=apache,dc=org</ldap-admin-dn>
<ldap-admin-password>secret</ldap-admin-password>
<ldap-authentication>simple</ldap-authentication>
<ldap-user-base-dn>dc=apache,dc=org</ldap-user-base-dn>
</user-manager>
-->
<!-- file system manager configuration block
<file-system-manager>
<class>org.apache.ftpserver.filesystem.NativeFileSystemManager</class>
<create-home>false</create-home>
</file-system-manager>
-->
<!-- All ftplets
<ftplets>f1,f2</ftplets>
-->
<!-- Ftplet configuration
<ftplet>
<f1>
<class>org.apache.ftpserver.ftplet.Ftplet1</class>
<param>value1</param>
</f1>
<f2>
<class>org.apache.ftpserver.ftplet.Ftplet2</class>
<param>value2</param>
</f2>
</ftplet>
-->
</config>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]