<?php
/*
This file belongs to the Webinterface of schokokeks.org Hosting
Written 2008-2018 by schokokeks.org Hosting, namely
Bernd Wurst <bernd@schokokeks.org>
Hanno Böck <hanno@schokokeks.org>
To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty.
You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see
http://creativecommons.org/publicdomain/zero/1.0/
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);
$mode = 'cert';
if ($_REQUEST['mode'] == 'csr') {
$mode = 'csr';
}
$section = 'vhosts_certs';
if ($mode == 'csr') {
$data = csr_details($_REQUEST['id']);
$cert = $data['csr'];
$key = $data['key'];
title('CSR anzeigen');
output("<p>Untenstehend sehen Sie Ihren automatisch erzeugten CSR (»certificate signing request«) und evtl.
den dazu gehörigen privaten Schlüssel. Sofern Sie den privaten Schlüssel auf Ihrer Festplatte
speichern, stellen Sie bitte sicher, dass dieser vor unbefugtem Zugriff geschützt ist. Der
private Schlüssel ist selbst <strong>nicht verschlüsselt</strong> und nicht mit einem
Passwort geschützt.</p>");
output("<h4>CSR</h4>
<textarea cols=\"70\" rows=\"20\">
{$cert}
</textarea>");
if (isset($_REQUEST['private']) && $_REQUEST['private'] == 'yes') {
output("<h4>privater Schlüssel</h4>
<textarea cols=\"70\" rows=\"20\">
{$key}
</textarea>");