3ef995c2108fe77d22c0b556fb9717cb848bc48f
bernd CSR-Erstellung

bernd authored 16 years ago

1) <?php
Hanno Böck Add newlines before comment...

Hanno Böck authored 10 months ago

2) 
Bernd Wurst Added license tags for CC0,...

Bernd Wurst authored 13 years ago

3) /*
4) This file belongs to the Webinterface of schokokeks.org Hosting
5) 
Hanno Böck Change license from CC0 to...

Hanno Böck authored 3 years ago

6) Written by schokokeks.org Hosting, namely
Bernd Wurst Added license tags for CC0,...

Bernd Wurst authored 13 years ago

7)   Bernd Wurst <bernd@schokokeks.org>
8)   Hanno Böck <hanno@schokokeks.org>
9) 
Hanno Böck Change license from CC0 to...

Hanno Böck authored 3 years ago

10) This code is published under a 0BSD license.
Bernd Wurst Added license tags for CC0,...

Bernd Wurst authored 13 years ago

11) 
12) 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.
13) */
bernd CSR-Erstellung

bernd authored 16 years ago

14) 
15) require_once("certs.php");
16) require_role(ROLE_SYSTEMUSER);
17) 
18) 
bernd Benutze überall title() sta...

bernd authored 15 years ago

19) title("Neues Zertifikat (CSR) erzeugen");
bernd CSR-Erstellung

bernd authored 16 years ago

20) $section = 'vhosts_certs';
21) 
22) 
bernd Benutze überall title() sta...

bernd authored 15 years ago

23) output("<p>Mit dieser Funktion können Sie ein neues Zertifikat erzeugen lassen. Dabei wird ein so genannter 
bernd CSR-Erstellung

bernd authored 16 years ago

24) CSR (certifikate signing request) erzeugt. Diesen CSR müssen Sie dann (meistens per Webinterface) an 
25) Ihre Zertifizierungsstelle übergeben. Von dort erhalten Sie dann das fertige, unterschriebene 
26) Zertifikat zurück.</p>
27) 
28) <p>Um diese Funktion möglichst einfach zu halten, können Sie damit nicht alle Einstellungen
29) eines CSR festlegen. Insbesondere die Angabe des Inhabers wurde hier entfernt. CAcert (und andere 
30) günstige CAs) würde diese Zusatzinformationen sowieso aus dem Zertifikat entfernen. Für eigene 
31) Einstellungen stehen Ihnen die OpenSSL-Programme in Ihrem Benutzeraccount zur Verfügung.</p>
32) ");
33) 
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 4 years ago

34) $bitselect = [2048 => 2048, 4096 => 4096];
bernd CSR-Erstellung

bernd authored 16 years ago

35) 
Bernd Wurst * Ermögliche SAN bei CSRs *...

Bernd Wurst authored 10 years ago

36) $form = '<p><label for="commonname">Domain-/Hostname:</label> <input type="text" name="commonname" id="commonname" /> (Mehrere Hostnames ggf. mit Komma trennen.)</p>
Hanno Böck Spaces between string conca...

Hanno Böck authored 2 years ago

37) <p><label for="bitlength">Bitlänge:</label> ' . html_select('bitlength', $bitselect, 2048) . '</p>