Sicherheit SSL/TLS
@if($sslProvisioning)
@endif
SSL/TLS @php $realCerts = array_filter($certs, fn($c) => !isset($c['_error'])); @endphp {{ count($realCerts) }}
{{-- Zweispaltig: links Einrichten, rechts Tabelle --}}
{{-- ═══ Linke Spalte: Einrichten ═══ --}}
Let's Encrypt einrichten
{{-- Domain-Status --}} @php $domainMap = [ 'ui' => ['label' => 'UI', 'domain' => $uiDomain], 'webmail' => ['label' => 'Webmail', 'domain' => $webmailDomain], 'mail' => ['label' => 'Mailserver', 'domain' => $mailDomain], ]; @endphp
@foreach($domainMap as $key => $info) @php $d = $info['domain']; $certOk = $d && (file_exists("/etc/letsencrypt/renewal/{$d}.conf") || is_dir("/etc/letsencrypt/live/{$d}")); @endphp
@if(!$d) @elseif($certOk) @else @endif
{{ $info['label'] }} @if($d) {{ $d }} @endif
{{ !$d ? '—' : ($certOk ? 'Vorhanden' : 'Fehlt') }}
@endforeach
{{-- Fortschritt --}} @if($sslProvisioning || $sslDone)
{{ $sslProvisioning ? 'Zertifikate werden eingerichtet…' : 'Einrichtung abgeschlossen' }}
@foreach(['ui' => 'UI', 'webmail' => 'Webmail', 'mail' => 'Mailserver'] as $key => $label) @php $st = $sslProgress[$key] ?? 'pending'; @endphp
@if($st === 'done') @elseif($st === 'error' || $st === 'nodns') @elseif($st === 'running') @else @endif {{ $label }} @if($st === 'nodns') — kein DNS @elseif($st === 'error') — fehlgeschlagen @elseif($st === 'running') — läuft… @endif
@endforeach
@endif {{-- Button --}} @if(!$uiDomain || !$webmailDomain || !$mailDomain)
Bitte erst alle Domains unter Einstellungen speichern.
@else @endif
{{-- ═══ Rechte Spalte: Ausgestellte Zertifikate ═══ --}}
Ausgestellte Zertifikate
@php $unavailable = !empty($certs) && isset($certs[0]['_error']); @endphp @if($unavailable)
certbot nicht erreichbar
sudo-Recht für /usr/bin/certbot fehlt
@elseif(empty($realCerts))
Noch keine Zertifikate
Links auf "Einrichten" klicken
@else
@foreach($realCerts as $cert) @endforeach
Name / Pfad Domains Gültig bis Status
{{ $cert['name'] }} @if($cert['cert_path'])
{{ $cert['cert_path'] }}
@endif
@foreach($cert['domains'] as $d) {{ $d }} @endforeach
@if($cert['expiry_date']) {{ $cert['expiry_date'] }} @if($cert['days_left'] !== null)
{{ $cert['days_left'] }} Tage
@endif @elseif($cert['days_left'] !== null) {{ $cert['days_left'] }} Tage @else @endif
@if($cert['expired']) Abgelaufen @elseif($cert['days_left'] !== null && $cert['days_left'] < 14) Bald fällig @else Gültig @endif
@endif