source code taken from cacert-20100204.tar.bz2
[cacert.git] / cacert / www / api / ccsr.php
index b2db656..e81c738 100644 (file)
@@ -78,7 +78,7 @@
                                `subject`='$csrsubject', `codesign`='$codesign'";
        mysql_query($query);
        $certid = mysql_insert_id();
-       $CSRname = "/www/csr/client-$certid.csr";
+       $CSRname = generatecertpath("csr","client",$certid);
        rename($checkedcsr, $CSRname);
 
        mysql_query("update `emailcerts` set `csr_name`='$CSRname' where `id`='$certid'");