* Sun Mar 16 2025 Jean-Philippe Pialasse <jpp@koozali.org> 11.0.0-31.sme
- handle dh params with template [SME: 12826] TODO timer and event - foolproofing dummy.module
This commit is contained in:
8
root/etc/e-smith/templates/etc/crontab/dhgenerate
Normal file
8
root/etc/e-smith/templates/etc/crontab/dhgenerate
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
use esmith::ssl;
|
||||
my $folder="/home/e-smith/dh.pem";
|
||||
my $KeySize = 4096;
|
||||
$OUT = "#4096 dhparam exists";
|
||||
$OUT = '@reboot root sleep 2d && /sbin/e-smith/signal-event dhparam-update'."\n" unless (dh_exists_good_size($KeySize,"$folder/$KeySize.pem"));
|
||||
}
|
||||
|
Reference in New Issue
Block a user