In this article Python code install and configure FTPS server to CentOS7 server. In CentOS7 server SeLinux is already enabled. Python code automatically generates certificate, creates user, configure firewall and SeLinux for FTPS. At the end we will check result with Filezilla client from Windows desktop.
Our network topology will be as following:
Clone git repository to the local folder in your Linux Desktop. Go to already downloaded folder and execute install.py script:
$ git clone https://github.com/jamalshahverdiev/CentOS7-VSFTPD-FTPS.git
$ cd CentOS7-VSFTPD-FTPS.git
$ ./install.py
Script will ask you enter network card name to configure SeLinux and Firewall for FTPS:
Then go to the Windows desktop and open Filezilla client(Write username and password which you entered before and press Quickconnect button):
As we see we must accept certificate which FTPS server gives us:
Look at the result: