Information on how to use the ssl/tls feature for secure ftp
Moderators: Hacker, petermad, Stefan2, white
- franck8244
- Power Member
- Posts: 704
- Joined: 2003-03-06, 17:37 UTC
- Location: Geneva...
For those who want to test the new ftp / ssl features:
ftps server : 194.146.111.60
username : pub_tc_user
passwd : tctest
pub key of the server (save as rootcert.pem)
Uploaded files will be removed every hours...
Franck
ftps server : 194.146.111.60
username : pub_tc_user
passwd : tctest
pub key of the server (save as rootcert.pem)
Code: Select all
-----BEGIN CERTIFICATE-----
MIICeTCCAeICCQDFOUrIQ9jyfzANBgkqhkiG9w0BAQQFADCBgDELMAkGA1UEBhMC
R0UxDzANBgNVBAgTBkdFTkVWQTELMAkGA1UEBxMCR0UxDDAKBgNVBAoTAzdnMDEM
MAoGA1UECxMDN2cwMRcwFQYDVQQDEw4xOTQuMTQ2LjExMS42MDEeMBwGCSqGSIb3
DQEJARYPZnJnQGhlcHRhZ28uY29tMB4XDTA2MDkyNTEwMTc0MFoXDTA3MDkyNTEw
MTc0MFowgYAxCzAJBgNVBAYTAkdFMQ8wDQYDVQQIEwZHRU5FVkExCzAJBgNVBAcT
AkdFMQwwCgYDVQQKEwM3ZzAxDDAKBgNVBAsTAzdnMDEXMBUGA1UEAxMOMTk0LjE0
Ni4xMTEuNjAxHjAcBgkqhkiG9w0BCQEWD2ZyZ0BoZXB0YWdvLmNvbTCBnzANBgkq
hkiG9w0BAQEFAAOBjQAwgYkCgYEA4cHYSQtW/CxgzR21ES9ZPqFfl3UOXxK28lmv
fkhvWorSCSm1B3DDWitQwz7/A90GwSXBgbNn8VMc2aAd9TqQfIZrvnUXAruNKZeQ
eiLZCa9CnyovxcqoJ98lIzRZKfxuEl/9GinTTrGEpBmnjIwaLXUPfY01vbtxHHFZ
UOWR/zECAwEAATANBgkqhkiG9w0BAQQFAAOBgQAfLz0+zvnTOBrqRwIOCkaN4jJm
epLwtAPvHlRKq0wbIEA98tdHnib2A0PqQ/+lxI49jGzLqBi4qf3PagKNhJZ9I6BW
fK06o7SnhTsGokkfen2v08x3bplrI+79P/EjZRwd4+MXPkMGnAM4/D6vRhjjZk/j
JRQdvU4uz5g+EQgSSA==
-----END CERTIFICATE-----
Franck
TC#88260 -
I did, however it hang on the command "LIST".ghisler(Author) wrote:Try to connect anonymously to our forum server:
ftps://ghisler.ch/
Code: Select all
----------
Connect to: (07.11.2006 16:46:28)
hostname=ghisler.ch
username=anonymous
startdir=
ghisler.ch=204.157.1.65
220---------- Welcome to Pure-FTPd [TLS] ----------
220-You are user number 6 of 50 allowed.
220-Local time is now 10:46. Server port: 21.
220 You will be disconnected after 15 minutes of inactivity.
AUTH TLS
234 AUTH TLS OK.
Cert subject: /C=US/ST=Unknown/L=Unknown/O=Unknown/OU=Unknown/CN=gandalf.dewahost.net/emailAddress=ssl@cpanel.net
Cert issuer: /C=US/ST=Unknown/L=Unknown/O=Unknown/OU=Unknown/CN=gandalf.dewahost.net/emailAddress=ssl@cpanel.net
USER anonymous
230 Anonymous user logged in
SYST
215 UNIX Type: L8
FEAT
211-Extensions supported:
EPRT
IDLE
MDTM
SIZE
REST STREAM
MLST type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*;
MLSD
ESTP
PASV
EPSV
SPSV
ESTA
AUTH TLS
PBSZ
PROT
211 End.
PBSZ 0
200 PBSZ=0
PROT P
534 Fallback to [C]
Connect ok!
CWD /
250 OK. Current directory is /
PWD
257 "/" is your current location
Verzeichnis einlesen
TYPE A
200 TYPE is now ASCII
PORT 85,216,78,207,5,237
200 PORT command successful
LIST
Taste 'Abbrechen' betätigt!
Thx a lot, however I've the same problem: It hang on the "LIST" command.franck8244 wrote:ftps server : 194.146.111.60
username : pub_tc_user
passwd : tctest
So three different server same problem (the problem I reported first is gone).
I use version 0.9.8d of libeay32.dll and libssl32.dll
be484325e8d904b61d769bdcec66bbb0 *libeay32.dll
57053e0ed5d31f7f776f9481d5d5cd83 *libssl32.dll
Opera|TheBat|TotalCommander|Kaspersky|IrfanView|WinRAR
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
I got no successful connection. Probably the router is the reason? The same error message with passive mode.
Code: Select all
----------
Connect to: (07.11.2006 16:51:08)
hostname=ghisler.ch
username=anonymous
startdir=
ghisler.ch=204.157.1.65
220---------- Welcome to Pure-FTPd [TLS] ----------
220-You are user number 2 of 50 allowed.
220-Local time is now 10:51. Server port: 21.
220 You will be disconnected after 15 minutes of inactivity.
AUTH TLS
234 AUTH TLS OK.
Cert subject: /C=US/ST=Unknown/L=Unknown/O=Unknown/OU=Unknown/CN=gandalf.dewahost.net/emailAddress=ssl@cpanel.net
Cert issuer: /C=US/ST=Unknown/L=Unknown/O=Unknown/OU=Unknown/CN=gandalf.dewahost.net/emailAddress=ssl@cpanel.net
USER anonymous
230 Anonymous user logged in
SYST
215 UNIX Type: L8
FEAT
211-Extensions supported:
EPRT
IDLE
MDTM
SIZE
REST STREAM
MLST type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*;
MLSD
ESTP
PASV
EPSV
SPSV
ESTA
AUTH TLS
PBSZ
PROT
211 End.
PBSZ 0
200 PBSZ=0
PROT P
534 Fallback to [C]
Connect ok!
PWD
257 "/" is your current location
Verzeichnis einlesen
TYPE A
200 TYPE is now ASCII
PORT 192,168,102,2,5,106
500 I won't open a connection to 192.168.102.2 (only to 85.216.78.207)
Last edited by norfie² on 2006-11-07, 17:57 UTC, edited 1 time in total.
- franck8244
- Power Member
- Posts: 704
- Joined: 2003-03-06, 17:37 UTC
- Location: Geneva...
ftps:// option does not work with a proxy
To establish a FTPS connection the URL must be entered like ftps://ghisler.ch This does not work well when connecting through a proxy. TC sends the URL including ftps:// to the proxy. The proxy does not know what to do with it.
This is sent to the example;
GET ftp://ftps://ghisler.ch/ HTTP/1.0
Host: ftps://ghisler.ch
User-Agent: Mozilla/4.0 (compatible; Totalcmd; Windows XP)
TC should omit ftps:// from the URL send to the proxy.
Maybe it is possible to enable FTPS via an optionbox like "Use firewall"? If so, this option should also be available with ctrl-n.
This is sent to the example;
GET ftp://ftps://ghisler.ch/ HTTP/1.0
Host: ftps://ghisler.ch
User-Agent: Mozilla/4.0 (compatible; Totalcmd; Windows XP)
TC should omit ftps:// from the URL send to the proxy.
Maybe it is possible to enable FTPS via an optionbox like "Use firewall"? If so, this option should also be available with ctrl-n.
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
You are still in port mode! You need to switch that specific connection to passive mode, it's stored in the settings of each connection.PORT 192,168,102,2,5,106
Do not use the HTTP proxy with ftp support for ftps. It's a clear text http connection, and doesn't support encrypted ftp.To establish a FTPS connection the URL must be entered like ftps://ghisler.ch This does not work well when connecting through a proxy.
Instead, use the other HTTP proxy option HTTP CONNECT!
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Same error with passive modeghisler(Author) wrote:You are still in port mode! You need to switch that specific connection to passive mode, it's stored in the settings of each connection.PORT 192,168,102,2,5,106
wcx_ftp.ini wrote:[ftps-Test Ghisler]
host=ftps://ghisler.ch
username=anonymous
anonymous=1
pasvmode=1
Code: Select all
----------
Connect to: (08.11.2006 18:22:05)
hostname=ghisler.ch
username=anonymous
startdir=
ghisler.ch=204.157.1.65
220---------- Welcome to Pure-FTPd [TLS] ----------
220-You are user number 3 of 50 allowed.
220-Local time is now 12:21. Server port: 21.
220 You will be disconnected after 15 minutes of inactivity.
AUTH TLS
234 AUTH TLS OK.
Cert subject: /C=US/ST=Unknown/L=Unknown/O=Unknown/OU=Unknown
/CN=gandalf.dewahost.net/emailAddress=ssl@cpanel.net
Cert issuer: /C=US/ST=Unknown/L=Unknown/O=Unknown/OU=Unknown
/CN=gandalf.dewahost.net/emailAddress=ssl@cpanel.net
USER anonymous
230 Anonymous user logged in
SYST
215 UNIX Type: L8
FEAT
211-Extensions supported:
EPRT
IDLE
MDTM
SIZE
REST STREAM
MLST type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*;
MLSD
ESTP
PASV
EPSV
SPSV
ESTA
AUTH TLS
PBSZ
PROT
211 End.
PBSZ 0
200 PBSZ=0
PROT P
534 Fallback to [C]
Connect ok!
PWD
257 "/" is your current location
Verzeichnis einlesen
TYPE A
200 TYPE is now ASCII
PASV
227 Entering Passive Mode (204,157,1,65,120,47)
PORT 192,168,102,2,4,183
500 I won't open a connection to 192.168.102.2 (only to 85.216.78.7)
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
You cannot open a fixed outgoing port for that - ftp and ftps use random ports for data connections, as you can see in the reponse to the PASV command (the last two numbers form the port).
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Version ?
2OutlawZ
Hello ! Welcome aboard !
• Please, check if you have a correct version :
- Here, I've 0.9.8.1 and that works.
Kind regards,
Claude
Clo

• Please, check if you have a correct version :
- Here, I've 0.9.8.1 and that works.

Claude
Clo
#31505 Traducteur Français de T•C French translator Aide en Français Tutoriels Français English Tutorials
Thanks a lot!
It looks i've tried too old dll-s and i'm just installed openssl on my pc. Now with 0.9.8d it looks to work.
Is it possible the problem was that i haven't installed open ssl just downloaded the dll-s or fully the wrong versions of the dll's?
Thx a lot again
And thx the welcome;)
Regards
OutlawZ
It looks i've tried too old dll-s and i'm just installed openssl on my pc. Now with 0.9.8d it looks to work.
Is it possible the problem was that i haven't installed open ssl just downloaded the dll-s or fully the wrong versions of the dll's?
Thx a lot again
And thx the welcome;)
Regards
OutlawZ