bug-790: implement that thing.
authorFelix Dörre <felix@dogcraft.de>
Tue, 23 Sep 2014 21:12:24 +0000 (23:12 +0200)
committerFelix Dörre <felix@dogcraft.de>
Tue, 23 Sep 2014 21:12:24 +0000 (23:12 +0200)
includes/account.php
pages/account/17.php

index b1ab984..a713f09 100644 (file)
@@ -1570,7 +1570,7 @@ function buildSubjectFromSession() {
                        }
                        mysql_query("update `orgemailcerts` set `csr_name`='$CSRname' where `id`='$emailid'");
                } else if($_REQUEST['keytype'] == "MS" || $_REQUEST['keytype']=="VI") {
-                       $csr = "-----BEGIN CERTIFICATE REQUEST-----\n".clean_csr($_REQUEST['CSR'])."-----END CERTIFICATE REQUEST-----\n";
+                       $csr = "-----BEGIN CERTIFICATE REQUEST-----\n".clean_csr($_REQUEST['CSR'])."\n-----END CERTIFICATE REQUEST-----\n";
 
                        if (($weakKey = checkWeakKeyCSR($csr)) !== "")
                        {
index 8ac8b65..cd2ad0a 100644 (file)
 */
 
 require_once($_SESSION['_config']['filepath'].'/includes/keygen.php');
+
+?>
+
+               <form method="post" action="account.php">
+                       <input type="hidden" name="keytype" value="VI">
+                       <textarea rows="10" cols="10" name="CSR"></textarea>
+                       <input type="submit" name="submit" value="Erstellen einer Zertifikat-Anfrage (CSR)">
+                       <input type="hidden" name="oldid" value="17">
+               </form>