Skip to content

Commit d61be8a

Browse files
author
Marius Burkard
committed
Merge branch '6301-delete-ssl-cert-symlinks-in-website-ssl-folder-when-acme-sh-is-used' into 'develop'
Resolve "Delete SSL cert symlinks in website ssl folder when acme.sh is used" Closes #6301 See merge request ispconfig/ispconfig3!1578
2 parents 8bb306e + 6ef8531 commit d61be8a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

server/lib/classes/letsencrypt.inc.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,10 @@ public function request_certificates($data, $server_type = 'apache') {
415415
if($use_acme) {
416416
$letsencrypt_cmd = $this->get_acme_command($temp_domains, $key_file, $bundle_file, $crt_file, $server_type);
417417
$allow_return_codes = array(2);
418+
// Cleanup ssl cert symlinks, if exists
419+
if(@is_link($key_file)) unlink($key_file);
420+
if(@is_link($bundle_file)) unlink($bundle_file);
421+
if(@is_link($crt_file)) unlink($crt_file);
418422
} else {
419423
$letsencrypt_cmd = $this->get_certbot_command($temp_domains);
420424
umask($old_umask);

0 commit comments

Comments
 (0)