Improved server certificate renewal. Another bug is still there.

This commit is contained in:
Philipp Dunkel 2009-05-22 05:09:24 +00:00
parent 22a0edf00b
commit f522b17554

View file

@ -770,7 +770,9 @@
//`csr_name`='".$row['csr_name']."', // RACE CONDITION //`csr_name`='".$row['csr_name']."', // RACE CONDITION
"`created`='".$row['created']."', "`created`='".$row['created']."',
`modified`=NOW(), `modified`=NOW(),
`rootcert`='".$row['rootcert']."'"; `rootcert`='".$row['rootcert']."',
`type`='".$row['type']."',
`pkhash`='".$row['pkhash']."'";
mysql_query($query); mysql_query($query);
$newid = mysql_insert_id(); $newid = mysql_insert_id();
$newfile = $_SESSION['_config']['filepath']."/csr/server-$newid.csr"; $newfile = $_SESSION['_config']['filepath']."/csr/server-$newid.csr";