Learn about Centmin Mod LEMP Stack today
Become a Member

Beta Branch create missing pure-ftpd dhparam file

Discussion in 'Centmin Mod Github Commits' started by eva2000, Apr 3, 2017.

  1. eva2000

    eva2000 Administrator Staff Member

    30,838
    6,903
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,393
    Local Time:
    12:13 PM
    Nginx 1.13.x
    MariaDB 5.5
    create missing pure-ftpd dhparam file

    Seems pure-ftpd now complains if the DH paramater file /etc/ssl/private/pure-ftpd-dhparams.pem is missing in CentOS 7
    Code (Text):
    # journalctl -u pure-ftpd --no-pager |sed -e "s|$(hostname)|hostname|g"
    -- Logs begin at Sun 2017-04-02 19:27:22 UTC, end at Sun 2017-04-02 21:03:47 UTC. --
    Apr 02 20:16:44 hostname systemd[1]: Starting Pure-FTPd FTP server...
    Apr 02 20:16:44 hostname systemd[1]: PID file /var/run/pure-ftpd.pid not readable (yet?) after start.
    Apr 02 20:16:44 hostname pure-ftpd[21215]: (?@?) [DEBUG] Couldn't load the DH parameters file /etc/ssl/private/pure-ftpd-dhparams.pem
    

    manual fix which depending on server hardware specs/speed will take some time to create with SSH command below
    Code (Text):
    time openssl dhparam -out /etc/ssl/private/pure-ftpd-dhparams.pem 2048
    service pure-ftpd restart
    


    Continue reading...

    123.09beta01 branch
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,838
    6,903
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,393
    Local Time:
    12:13 PM
    Nginx 1.13.x
    MariaDB 5.5
    for existing centmin mod users when they have updated their code via centmin.sh menu option 23 submenu option 2, the next centmin.sh run afterwards will prompt to create the missing file

    example
    Code (Text):
    ./centmin.sh
    
    pure-ftpd: one time setup /etc/ssl/private/pure-ftpd-dhparams.pem file
    may take a while to create...
    pure-ftpd: /etc/ssl/private/pure-ftpd-dhparams.pem created