Bernd Wurst commited on 2015-12-08 16:28:13
Zeige 2 geänderte Dateien mit 3 Einfügungen und 2 Löschungen.
... | ... |
@@ -230,7 +230,7 @@ $extended = ''; |
230 | 230 |
{ |
231 | 231 |
$certselect[$c['id']] = $c['subject']; |
232 | 232 |
} |
233 |
- if ($vhost['certid'] == 0 && strstr($vhost['options'], 'letsencrypt')) { |
|
233 |
+ if (strstr($vhost['options'], 'letsencrypt')) { |
|
234 | 234 |
$vhost['certid'] = -1; |
235 | 235 |
} |
236 | 236 |
$extended .= " |
... | ... |
@@ -57,7 +57,8 @@ function cert_details($id) |
57 | 57 |
function cert_is_letsencrypt($id) |
58 | 58 |
{ |
59 | 59 |
$details = cert_details($id); |
60 |
- if ($details['chain'] == config('letsencrypt_chain')) { |
|
60 |
+ if ($details['chain'] == config('letsencrypt_chain') && |
|
61 |
+ strstr($details['subject'], "Let's Encrypt autogenerated") > 0) { |
|
61 | 62 |
return true; |
62 | 63 |
} |
63 | 64 |
return false; |
64 | 65 |