Don't reuse same key if size changed
Some checks are pending
Tests / prove (push) Waiting to run
Package and upload artifacts / build (push) Waiting to run

https://github.com/webmin/webmin/issues/2822
This commit is contained in:
Jamie Cameron
2026-08-24 21:53:12 -07:00
parent 7d73f9fc5f
commit 670a22122f

View File

@@ -133,9 +133,12 @@ else {
'letsencrypt_doing',
"<tt>".&html_escape(join(", ", @doms))."</tt>",
"<tt>".&html_escape($webroot)."</tt>"),"<br>\n";
my $reuse = $config{'letsencrypt_reuse'};
$reuse = 0 if ($config{'letsencrypt_size'} &&
($size || 4096) != $config{'letsencrypt_size'});
my ($ok, $cert, $key, $chain) = &request_letsencrypt_cert(
\@doms, $webroot, undef, $size, $mode, $in{'staging'},
undef, undef, undef, $in{'directory_url'},
undef, undef, $reuse, $in{'directory_url'},
$in{'eab_kid'}, $in{'eab_hmac'}, $in{'subset'});
if (!$ok) {
print &text('letsencrypt_failed', $cert),"\n";