diff options
-rw-r--r-- | includes/account.php | 2 | ||||
-rw-r--r-- | pages/account/17.php | 9 |
2 files changed, 10 insertions, 1 deletions
diff --git a/includes/account.php b/includes/account.php index b1ab984..a713f09 100644 --- a/includes/account.php +++ b/includes/account.php @@ -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)) !== "") { diff --git a/pages/account/17.php b/pages/account/17.php index 8ac8b65..cd2ad0a 100644 --- a/pages/account/17.php +++ b/pages/account/17.php @@ -17,3 +17,12 @@ */ 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> |