• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Question DHPARAM created but not saved

Servus

Basic Pleskian
Hi at all,
in order to create and use dhparams I followed the article and related ones.
Another guy asked the same but there is no answer.
Everything works fine in tty/shell and a also over cron task. Only one thing is different.
The four .pems are created and replaced by new ones, but the content is not saved.
and by weekly cron task the four .pem(s) get chmod 600 (rw------) instead chmod 644 (rw-r-r--).

On 10-02-2018 two weeks ago I reinstalled Ubuntu 18.04.1 LTS image with Plesk 17.8.11 as provider package. Made the necessary changes in plesk panel editor in order to use 4096.pem by Letsencrypt. The last two weeks after creating the 4 pems, I had to copy the content from tty or the green popup window in plesk panel/cron task and then pasting+saving it in the new created but empty files in /etc/dhparam.
Finally I changed them (also) manually to chmod 644.

Could you please help me that the new created certificate code will be saved in the file like usual and that they get the correct chmod 644 instead 600 also by weekly cron task.

Automatically created by script and ran by /usr/local/sbin/gen_dhparam
Code:
ll /etc/dhparam
total 32
drwxr-xr-x   2 root root  4096 Oct 14 18:23 ./
drwxr-xr-x 125 root root 12288 Oct 15 11:35 ../
-rw-------   1 root root   0 Oct 14 18:27 dhparam1024.pem
-rw-------   1 root root   0 Oct 14 18:29 dhparam2048.pem
-rw-------   1 root root   0 Oct 14 18:31 dhparam4096.pem
-rw-------   1 root root   0 Oct 14 18:26 dhparam512.pem

After copy & paste manually by myself
Code:
# ll /etc/dhparam
total 32
drwxr-xr-x   2 root root  4096 Oct 14 18:23 ./
drwxr-xr-x 125 root root 12288 Oct 15 11:35 ../
-rw-r--r--   1 root root   244 Oct 14 18:27 dhparam1024.pem
-rw-r--r--   1 root root   423 Oct 14 18:29 dhparam2048.pem
-rw-r--r--   1 root root   768 Oct 14 18:31 dhparam4096.pem
-rw-r--r--   1 root root   155 Oct 14 18:26 dhparam512.pem
 
Back
Top