Skip to content

Commit 2cc49df

Browse files
author
Till Brehm
committed
Merge branch 'hebbet-stable-3.1-patch-63960' into 'stable-3.1'
[acme.sh] tweak acme.sh integration to make certbot See merge request ispconfig/ispconfig3!1112
2 parents e07d39e + 2523240 commit 2cc49df

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

server/lib/classes/letsencrypt.inc.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
class letsencrypt {
3232

33-
/**
33+
/**
3434
* Construct for this class
3535
*
3636
* @return system
@@ -74,7 +74,7 @@ public function get_acme_command($domains, $key_file, $bundle_file, $cert_file,
7474
$cert_arg = '--fullchain-file ' . escapeshellarg($bundle_file) . ' --cert-file ' . escapeshellarg($cert_file);
7575
}
7676

77-
$cmd = 'R=0 ; C=0 ; ' . $letsencrypt . ' --issue ' . $cmd . ' -w /usr/local/ispconfig/interface/acme ; R=$? ; if [[ $R -eq 0 || $R -eq 2 ]] ; then ' . $letsencrypt . ' --install-cert ' . $cmd . ' --key-file ' . escapeshellarg($key_file) . ' ' . $cert_arg . ' --reloadcmd ' . escapeshellarg($this->get_reload_command()) . ' --log ' . escapeshellarg($conf['ispconfig_log_dir'].'/acme.log') . '; C=$? ; fi ; if [[ $C -eq 0 ]] ; then exit $R ; else exit $C ; fi';
77+
$cmd = 'R=0 ; C=0 ; ' . $letsencrypt . ' --issue ' . $cmd . ' -w /usr/local/ispconfig/interface/acme --always-force-new-domain-key --keylength 4096; R=$? ; if [[ $R -eq 0 || $R -eq 2 ]] ; then ' . $letsencrypt . ' --install-cert ' . $cmd . ' --key-file ' . escapeshellarg($key_file) . ' ' . $cert_arg . ' --reloadcmd ' . escapeshellarg($this->get_reload_command()) . ' --log ' . escapeshellarg($conf['ispconfig_log_dir'].'/acme.log') . '; C=$? ; fi ; if [[ $C -eq 0 ]] ; then exit $R ; else exit $C ; fi';
7878

7979
return $cmd;
8080
}
@@ -542,4 +542,4 @@ public function request_certificates($data, $server_type = 'apache') {
542542
return false;
543543
}
544544
}
545-
}
545+
}

0 commit comments

Comments
 (0)