summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Dörre <felix@dogcraft.de>2014-09-23 23:12:24 +0200
committerFelix Dörre <felix@dogcraft.de>2014-09-23 23:12:24 +0200
commit408c03848b0e60e449c0d5b9bf75bb9ddd88c269 (patch)
tree608747e4f287a06a9caa7848cdcf67e8bf495630
parent6d0f414854b2c1aa1da9ec49889ac9bb3b69b966 (diff)
downloadcacert-devel-408c03848b0e60e449c0d5b9bf75bb9ddd88c269.tar.gz
cacert-devel-408c03848b0e60e449c0d5b9bf75bb9ddd88c269.tar.xz
cacert-devel-408c03848b0e60e449c0d5b9bf75bb9ddd88c269.zip
bug-790: implement that thing.
-rw-r--r--includes/account.php2
-rw-r--r--pages/account/17.php9
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>