(detection and prevention of weak keys for CAcert-issued certificates)
This commit is contained in:
Wytze van der Raay 2011-06-16 09:20:24 +00:00
parent a9d9139d3a
commit a2a8c7dbe9

View file

@ -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");