Hanno Böck This code is published under a 0BSD license. Nevertheless, in case you use a significant part of this code, we ask (but not require, see the license) that you keep the authors' names in place and return your changes to the public. We would be especially happy if you tell us what you're going to do with this code. */ require_once("certs.php"); require_role(ROLE_SYSTEMUSER); title("Zertifikate"); output('

Bei ' . config('company_name') . ' können Sie Ihre eigenen Zertifikate nutzen. Wir verwenden dafür (wenn nicht anders vereinbart) die SNI-Technik. Beim Anlegen von Webserver-Konfigurationen können Sie dann eines Ihrer Zertifikate für jede Konfiguration auswählen.

Ihre bisher vorhandenen Zertifikate

'); $certs = user_certs(); if (count($certs) > 0) { output(""); foreach ($certs as $c) { $style = ""; if ($c['valid_until'] <= date('Y-m-d')) { $style = ' style="background-color: #f88;" '; } elseif ($c['valid_until'] <= date('Y-m-d', time() + (30 * 24 * 3600)) && !cert_is_letsencrypt($c['id'])) { $style = ' style="background-color: #ff8;" '; } output("" . internal_link('showcert', filter_output_html($c['subject']), "mode=cert&id={$c['id']}") . "" . filter_output_html($c['cn']) . "{$c['valid_from']}{$c['valid_until']}"); } output("
Name/DetailsCommonNameGültig abGültig bis 
" . internal_link('newcert', '', 'replace=' . $c['id']) . "   " . internal_link('savecert', '', 'action=delete&id=' . $c['id']) . "
"); } else { output('

Bisher haben Sie keine Zertifikate eingetragen

'); } addnew('newcert', 'Neues Zertifikat erzeugen / eintragen'); $csr = user_csr(); if (count($csr) > 0) { output('

offene CSRs

'); output(""); foreach ($csr as $c) { output(""); } output("
Host-/DomainnameBitlängeErzeugt am 
" . internal_link('showcert', $c['hostname'], 'mode=csr&id=' . $c['id']) . "{$c['bits']}{$c['created']}" . internal_link('savecert', '', 'action=deletecsr&id=' . $c['id']) . "   " . internal_link('certfromcsr', 'Zertifikat hinzufügen', "id={$c['id']}") . "
"); }