Tuesday, March 1, 2022

How To Configure ProFTPD To Use SSL/TLS Certificates on Rocky Linux 8.5

 in This Tutorial you will Learn " How To Configure ProFTPD To Use SSL/TLS Certificates on Rocky Linux 8.5"
ProFTPD is an FTP server.
Both TLS and SSL are protocols that help you securely authenticate and transport data on the Internet.
Rocky Linux is an open-source enterprise operating system designed to be 100% bug-for-bug compatible with Red Hat Enterprise Linux.
_________________________________________________________________________________________
Server - Os:  Rocky Linux 8.5  64Bit      |    IP -192.168.1.80        |     Hostname - www.tertiary.com
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; hostname ; hostname -I ; dnf groupinstall "Development Tools" -y
dnf install epel-release -y
dnf install proftpd -y
cd /etc/pki/tls/certs
openssl req -x509 -nodes -newkey rsa:2048 -keyout proftpd.pem -out proftpd.pem -days 3650
chmod 600 proftpd.pem ; gedit /etc/sysconfig/proftpd &>/dev/null

PROFTPD_OPTIONS="-DTLS"
gedit /etc/proftpd/mod_tls.conf &>/dev/null
TLSEngine                     on
# change if require TLS
TLSRequired                   on
#TLSCertificateChainFile       /etc/pki/tls/certs/proftpd-chain.pem
TLSRSACertificateFile         /etc/pki/tls/certs/proftpd.pem
TLSRSACertificateKeyFile      /etc/pki/tls/certs/proftpd.pem
systemctl restart proftpd
_________________________________________________________________________________________
ProFTPD FTP Client : Rocky Linux
cat /etc/system-release ; sestatus ; hostname -I ; dnf groupinstall "Development Tools" -y
dnf -y install lftp
nano ~/.lftprc
set ftp:ssl-auth TLS
set ftp:ssl-force true
set ftp:ssl-protect-list yes
set ftp:ssl-protect-data yes
set ftp:ssl-protect-fxp yes
set ssl:verify-certificate no
lftp -u debs 192.168.1.80
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

No comments:

Post a Comment