docs:tips_n_tricks:vsftpd.html
Table of Contents
vsftpd
Compiling with SSL support
builddefs.h
:
#ifndef VSF_BUILDDEFS_H #define VSF_BUILDDEFS_H #undef VSF_BUILD_TCPWRAPPERS #define VSF_BUILD_PAM #define VSF_BUILD_SSL #endif /* VSF_BUILDDEFS_H */
http://mybookworld.wikidot.com/forum/t-58735/open-ssl-and-vsftpd :
If you use openssl-0.9.7 you can't use sha256. Check with 'grep -l EVP_sha256 /usr/lib/libcrypto*' You must see at least: /usr/lib/libcrypto.a Alternatively you can use sha1 (it has a 160 bit key instead of 256) Check with 'grep -l EVP_sha1 /usr/lib/libcrypto*' If you see at least '/usr/lib/libcrypto.a', you can use sha1 ! Edit 'ssl.c' in the source tree: replace EVP_sha256 with EVP_sha1 Compile and you're ready to use ssl with vsftpd. Have fun DrLinux
Install
mkdir /opt/vsftpd-2.3.4 ln -s vsftpd-2.3.4 /opt/vsftpd mkdir -p /opt/vsftpd/sbin mkdir -p /opt/vsftpd/etc mkdir -p /opt/vsftpd/man/man5 mkdir -p /opt/vsftpd/man/man8 install -m 755 vsftpd /opt/vsftpd/sbin/vsftpd install -m 644 vsftpd.8 /opt/vsftpd/man/man8/vsftpd.8 install -m 644 vsftpd.conf.5 /opt/vsftpd/man/man5/vsftpd.conf.5
/opt/vsftpd/etc/vsftpd.conf
: ssl_enable=YES listen_port=21021 require_ssl_reuse=NO force_local_logins_ssl=NO force_local_data_ssl=NO rsa_cert_file=/opt/vsftpd/ssl/vsftpd.pem
/opt/vsftpd/ssl/vsftpd.pem
Created with tinyca2
docs/tips_n_tricks/vsftpd.html.txt · Last modified: 06.07.2011 09:41 CEST by peter