gabasr581
27-01-2007, 15:07
Ciao a tutti...ho provato ad attivare il supporto SSl inserendo queste opzioni:
# This option specifies the location of the RSA certificate to use for SSL
# encrypted connections.
rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
#
# This option specifies the location of the RSA key to use for SSL
# encrypted connections.
rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
#
# If enabled, and vsftpd was compiled against OpenSSL, vsftpd will
# support secure connections via SSL. This applies to the contro
# connection (including login) and also data connections. You’ll
# need a client with SSL support too. NOTE!! Beware enabling this
# option. Only enable it if you need it. vsftpd can make no guar‐
# antees about the security of the OpenSSL libraries. By enabling
# this option, you are declaring that you trust the security of
# your installed OpenSSL library.
ssl_enable=YES
#
# Only applies if ssl_enable is activated. If enabled, this option
# will permit SSL v2 protocol connections. TLS v1 connections are
# preferred.
ssl_sslv2=YES
#
# Only applies if ssl_enable is activated. If enabled, this option
# will permit SSL v3 protocol connections. TLS v1 connections are
# preferred.
ssl_sslv3=YES
#
# Only applies if ssl_enable is activated. If enabled, this option
# will permit TLS v1 protocol connections. TLS v1 connections are
# preferred.
ssl_tlsv1=YES
#
# Only applies if ssl_enable is activated. If activated, all
# anonymous logins are forced to use a secure SSL connection in
# order to send and receive data on data connections.
force_anon_data_ssl=YES
#
# Only applies if ssl_enable is activated. If activated, all
# anonymous logins are forced to use a secure SSL connection in
# order to send the password.
force_anon_logins_ssl=YES
#
# Only applies if ssl_enable is activated. If activated, all non-
# anonymous logins are forced to use a secure SSL connection in
# order to send and receive data on data connections.
force_local_data_ssl=YES
#
# Only applies if ssl_enable is activated. If activated, all non-
# anonymous logins are forced to use a secure SSL connection in
# order to send the password.
force_local_logins_ssl=YES
Dopodichè ho creato (almeno credo) un certificato SSL e una chiave, dando il seguente comando:
sudo openssl req -x509 -nodes -days 7300 -newkey rsa:2048 \-keyout /etc/ssl/private/ssl-cert-snakeoil.key -out /etc/ssl/certs/ssl-cert-snakeoil.pem
Ho fermato il server, l'ho riavviato, ho caricato le nuove impostazioni e ho provato a connettermi da locale (ftp localhost) , ricevendo, al momento di inserire il nome, questo errore:
530 Non-anonymous sessions must use encryption.
Login failed.
.
.
.
.
.
.
.
.
AIUTOOO!!!!! Angry
# This option specifies the location of the RSA certificate to use for SSL
# encrypted connections.
rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
#
# This option specifies the location of the RSA key to use for SSL
# encrypted connections.
rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
#
# If enabled, and vsftpd was compiled against OpenSSL, vsftpd will
# support secure connections via SSL. This applies to the contro
# connection (including login) and also data connections. You’ll
# need a client with SSL support too. NOTE!! Beware enabling this
# option. Only enable it if you need it. vsftpd can make no guar‐
# antees about the security of the OpenSSL libraries. By enabling
# this option, you are declaring that you trust the security of
# your installed OpenSSL library.
ssl_enable=YES
#
# Only applies if ssl_enable is activated. If enabled, this option
# will permit SSL v2 protocol connections. TLS v1 connections are
# preferred.
ssl_sslv2=YES
#
# Only applies if ssl_enable is activated. If enabled, this option
# will permit SSL v3 protocol connections. TLS v1 connections are
# preferred.
ssl_sslv3=YES
#
# Only applies if ssl_enable is activated. If enabled, this option
# will permit TLS v1 protocol connections. TLS v1 connections are
# preferred.
ssl_tlsv1=YES
#
# Only applies if ssl_enable is activated. If activated, all
# anonymous logins are forced to use a secure SSL connection in
# order to send and receive data on data connections.
force_anon_data_ssl=YES
#
# Only applies if ssl_enable is activated. If activated, all
# anonymous logins are forced to use a secure SSL connection in
# order to send the password.
force_anon_logins_ssl=YES
#
# Only applies if ssl_enable is activated. If activated, all non-
# anonymous logins are forced to use a secure SSL connection in
# order to send and receive data on data connections.
force_local_data_ssl=YES
#
# Only applies if ssl_enable is activated. If activated, all non-
# anonymous logins are forced to use a secure SSL connection in
# order to send the password.
force_local_logins_ssl=YES
Dopodichè ho creato (almeno credo) un certificato SSL e una chiave, dando il seguente comando:
sudo openssl req -x509 -nodes -days 7300 -newkey rsa:2048 \-keyout /etc/ssl/private/ssl-cert-snakeoil.key -out /etc/ssl/certs/ssl-cert-snakeoil.pem
Ho fermato il server, l'ho riavviato, ho caricato le nuove impostazioni e ho provato a connettermi da locale (ftp localhost) , ricevendo, al momento di inserire il nome, questo errore:
530 Non-anonymous sessions must use encryption.
Login failed.
.
.
.
.
.
.
.
.
AIUTOOO!!!!! Angry