...
|
...
|
@@ -225,22 +225,19 @@ if (!$vhost['server']) {
|
225
|
225
|
}
|
226
|
226
|
|
227
|
227
|
$extended = '';
|
228
|
|
- if (count($certs))
|
|
228
|
+ $certselect = array(0 => 'kein Zertifikat / System-Standard benutzen', -1 => 'Automatische Zertifikatsverwaltung über Let\'s Encrypt!');
|
|
229
|
+ foreach ($certs as $c)
|
229
|
230
|
{
|
230
|
|
- $certselect = array(0 => 'kein Zertifikat / System-Standard benutzen', -1 => 'Automatische Zertifikatsverwaltung über Let\'s Encrypt!');
|
231
|
|
- foreach ($certs as $c)
|
232
|
|
- {
|
233
|
|
- $certselect[$c['id']] = $c['subject'];
|
234
|
|
- }
|
235
|
|
- if ($vhost['certid'] == 0 && strstr($vhost['options'], 'letsencrypt')) {
|
236
|
|
- $vhost['certid'] = -1;
|
237
|
|
- }
|
238
|
|
- $extended .= "
|
239
|
|
- <h5>verwendetes SSL-Zertifikat</h5>
|
240
|
|
- <div style=\"margin-left: 2em;\">
|
241
|
|
- ".html_select('cert', $certselect, $vhost['certid'])."
|
242
|
|
- </div>";
|
|
231
|
+ $certselect[$c['id']] = $c['subject'];
|
243
|
232
|
}
|
|
233
|
+ if ($vhost['certid'] == 0 && strstr($vhost['options'], 'letsencrypt')) {
|
|
234
|
+ $vhost['certid'] = -1;
|
|
235
|
+ }
|
|
236
|
+ $extended .= "
|
|
237
|
+ <h5>verwendetes SSL-Zertifikat</h5>
|
|
238
|
+ <div style=\"margin-left: 2em;\">
|
|
239
|
+ ".html_select('cert', $certselect, $vhost['certid'])."
|
|
240
|
+ </div>";
|
244
|
241
|
if (count($ipaddrs))
|
245
|
242
|
{
|
246
|
243
|
$ipselect = array(0 => 'System-Standard');
|