Join the community today
Register Now

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

    54,893
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    6:30 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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

    54,893
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    6:30 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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