Dukemaster
Regular Pleskian
Hi at all,
I correctly implemented the creation of new DHPARAM every week.
They are created, which I can see from the changing date/time of the four files (dhparam512.pem....dhparam4096.pem).
But they are empty.
Cron task: command as root in Plesk 17.8 (Ubuntu 18)
This question was asked several times here in forum by several users, but never answered why the files are empty or in other way, why the content is not saved in the files and what to do. Perhaps the reason is wrong permissions?
I don't know.
Helpful people like Igor wrote a good instruction, a tutorial how to set this. It's working, with the only problem that the content is not saved in the files.
When I run
they are created and I can copy them from CLI into the files and save it by hand, but this is not the way, not computing.
I correctly implemented the creation of new DHPARAM every week.
They are created, which I can see from the changing date/time of the four files (dhparam512.pem....dhparam4096.pem).
But they are empty.
Cron task: command as root in Plesk 17.8 (Ubuntu 18)
Code:
FILE=`mktemp` ; openssl dhparam 512 -out $FILE && mv -f $FILE /etc/dhparam/dhparam512.pem && FILE=`mktemp` ; openssl dhparam 1024 -out $FILE && mv -f $FILE /etc/dhparam/dhparam1024.pem && FILE=`mktemp` ; openssl dhparam 2048 -out $FILE && mv -f $FILE /etc/dhparam/dhparam2048.pem && FILE=`mktemp` ; openssl dhparam 4096 -out $FILE && mv -f $FILE /etc/dhparam/dhparam4096.pem
This question was asked several times here in forum by several users, but never answered why the files are empty or in other way, why the content is not saved in the files and what to do. Perhaps the reason is wrong permissions?
I don't know.
Helpful people like Igor wrote a good instruction, a tutorial how to set this. It's working, with the only problem that the content is not saved in the files.
When I run
Code:
~# /usr/local/sbin/gen_dhparam
Last edited: