(detection and prevention of weak keys for CAcert-issued certificates)
This commit is contained in:
parent
a9d9139d3a
commit
a2a8c7dbe9
1 changed files with 6 additions and 0 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue