summaryrefslogtreecommitdiff
path: root/www/api/ccsr.php
diff options
context:
space:
mode:
authorMichael Tänzer <neo@nhng.de>2011-06-17 18:34:11 +0200
committerMichael Tänzer <neo@nhng.de>2011-06-17 18:34:11 +0200
commit9516e1d117d1dcf88db7ead53f950c66850c6fcb (patch)
tree12c677e0038b8f169831f84228c6e1a8f367c491 /www/api/ccsr.php
parent7c2327209cb81339d7e9a55d175c59786a2853b9 (diff)
downloadcacert-devel-9516e1d117d1dcf88db7ead53f950c66850c6fcb.tar.gz
cacert-devel-9516e1d117d1dcf88db7ead53f950c66850c6fcb.tar.xz
cacert-devel-9516e1d117d1dcf88db7ead53f950c66850c6fcb.zip
Source code taken from cacert-20110616.tar.bz2
Diffstat (limited to 'www/api/ccsr.php')
-rw-r--r--www/api/ccsr.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/www/api/ccsr.php b/www/api/ccsr.php
index e81c738..a4ec71e 100644
--- a/www/api/ccsr.php
+++ b/www/api/ccsr.php
@@ -59,6 +59,12 @@
$codesign = 1;
$CSR = trim($_REQUEST['optionalCSR']);
+
+ if (($weakKey = checkWeakKeyCSR($CSR)) !== "")
+ {
+ die("403, $weakKey");
+ }
+
$incsr = tempnam("/tmp", "ccsrIn");
$checkedcsr = tempnam("/tmp", "ccsrOut");
$fp = fopen($incsr, "w");