49fd23ed86038fd5f9a9687e0d8f180438777c9a
bernd CSR-Erstellung

bernd authored 14 years ago

1) <?php
Bernd Wurst Added license tags for CC0,...

Bernd Wurst authored 12 years ago

2) /*
3) This file belongs to the Webinterface of schokokeks.org Hosting
4) 
Bernd Wurst Lizenzinfos in eigenes Modu...

Bernd Wurst authored 10 years ago

5) Written 2008-2014 by schokokeks.org Hosting, namely
Bernd Wurst Added license tags for CC0,...

Bernd Wurst authored 12 years ago

6)   Bernd Wurst <bernd@schokokeks.org>
7)   Hanno Böck <hanno@schokokeks.org>
8) 
9) 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.
10) 
11) You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see 
12) http://creativecommons.org/publicdomain/zero/1.0/
13) 
14) 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.
15) */
bernd CSR-Erstellung

bernd authored 14 years ago

16) 
17) require_once('certs.php');
18) require_role(ROLE_SYSTEMUSER);
19) 
20) $mode = 'cert';
21) if ($_REQUEST['mode'] == 'csr')
22)   $mode = 'csr';
23) 
24) 
25) $section = 'vhosts_certs';
26) 
27) 
28) if ($mode == 'csr')
29) {
30)   $data = csr_details($_REQUEST['id']);
31)   $cert = $data['csr'];
32)   $key = $data['key'];
33) 
34) 
bernd Benutze überall title() sta...

bernd authored 13 years ago

35)   title('CSR anzeigen');
36)   output("<p>Untenstehend sehen Sie Ihren automatisch erzeugten CSR (»certificate signing request«) und evtl.
bernd CSR-Erstellung

bernd authored 14 years ago

37)   den dazu gehörigen privaten Schlüssel. Sofern Sie den privaten Schlüssel auf Ihrer Festplatte 
38)   speichern, stellen Sie bitte sicher, dass dieser vor unbefugtem Zugriff geschützt ist. Der
39)   private Schlüssel ist selbst <strong>nicht verschlüsselt</strong> und nicht mit einem 
40)   Passwort geschützt.</p>");
41) 
42)   output("<h4>CSR</h4>
bernd Benutze <textarea> für Zert...

bernd authored 14 years ago

43)   <textarea cols=\"70\" rows=\"20\">
bernd CSR-Erstellung

bernd authored 14 years ago

44) {$cert}
bernd Benutze <textarea> für Zert...

bernd authored 14 years ago

45) </textarea>");
bernd CSR-Erstellung

bernd authored 14 years ago

46)   
bernd neue Bilder, mehr SSL-Zerti...

bernd authored 14 years ago

47)   if (isset($_REQUEST['private']) && $_REQUEST['private'] == 'yes')
bernd CSR-Erstellung

bernd authored 14 years ago

48)   {
49)     output("<h4>privater Schlüssel</h4>
bernd Benutze <textarea> für Zert...

bernd authored 14 years ago

50) <textarea cols=\"70\" rows=\"20\">
bernd CSR-Erstellung

bernd authored 14 years ago

51) {$key}
bernd Benutze <textarea> für Zert...

bernd authored 14 years ago

52) </textarea>");
bernd CSR-Erstellung

bernd authored 14 years ago

53)   }
54)   else
55)   {
56)     output('<p>'.internal_link('', 'privaten Schlüssel auch anzeigen', "mode={$_REQUEST['mode']}&id={$_REQUEST['id']}&private=yes").'</p>');
57)   }
58) 
59) 
bernd addnew() eingeführt

bernd authored 14 years ago

60)   addnew('certfromcsr', 'Unterschriebenes Zertifikat eingeben', "id={$_REQUEST['id']}");
bernd CSR-Erstellung

bernd authored 14 years ago

61) 
62) 
63) }
64) else
65) {
66)   $data = cert_details($_REQUEST['id']);
67)   $cert = $data['cert'];
68)   $key = $data['key'];
69) 
bernd Benutze überall title() sta...

bernd authored 13 years ago

70)   title('Zertifikat anzeigen');
Bernd Wurst Interface für Zertifikate i...

Bernd Wurst authored 7 years ago

71)   output("<p>Untenstehend sehen Sie Ihr Zertifikat und evtl. den dazu gehörigen privaten 
bernd CSR-Erstellung

bernd authored 14 years ago

72)   Schlüssel. Sofern Sie den privaten Schlüssel auf Ihrer Festplatte speichern, stellen 
73)   Sie bitte sicher, dass dieser vor unbefugtem Zugriff geschützt ist. Der private 
74)   Schlüssel ist selbst <strong>nicht verschlüsselt</strong> und nicht mit einem 
75)   Passwort geschützt.</p>");
76) 
77)   output("<h4>Zertifikat</h4>
bernd Benutze <textarea> für Zert...

bernd authored 14 years ago

78)   <textarea cols=\"70\" rows=\"20\">
bernd CSR-Erstellung

bernd authored 14 years ago

79) {$cert}
bernd Benutze <textarea> für Zert...

bernd authored 14 years ago

80) </textarea>");
bernd CSR-Erstellung

bernd authored 14 years ago

81)   
bernd Benutze <textarea> für Zert...

bernd authored 14 years ago

82)   if (isset($_REQUEST['private']) && $_REQUEST['private'] == 'yes')
bernd CSR-Erstellung

bernd authored 14 years ago

83)   {
84)     output("<h4>privater Schlüssel</h4>
bernd Benutze <textarea> für Zert...

bernd authored 14 years ago

85) <textarea cols=\"70\" rows=\"20\">
bernd CSR-Erstellung

bernd authored 14 years ago

86) {$key}
bernd Benutze <textarea> für Zert...

bernd authored 14 years ago

87) </textarea>");