Refactored code for generatecertpath function, removed old code
This commit is contained in:
parent
20a89f4232
commit
e0cf962275
1 changed files with 3 additions and 15 deletions
18
www/gpg.php
18
www/gpg.php
|
@ -463,23 +463,11 @@ function verifyEmail($email)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$csrname=generatecertpath("csr","gpg",$id);
|
||||||
|
$do=`gpg --homedir $cwd --batch --export-options export-minimal --export $keyid >$csrname`;
|
||||||
|
|
||||||
$do=`gpg --homedir $cwd --batch --export-options export-minimal --export $keyid >../csr/gpg-$id.csr`;
|
mysql_query("update `gpg` set `csr`='$csrname' where `id`='$id'");
|
||||||
|
|
||||||
//echo "Export: $do\n";
|
|
||||||
|
|
||||||
//$fp = fopen("../csr/gpg-$id.csr", "w");
|
|
||||||
//fputs($fp, clean_csr($CSR'));
|
|
||||||
//fclose($fp);
|
|
||||||
|
|
||||||
|
|
||||||
if(1)
|
|
||||||
{
|
|
||||||
|
|
||||||
mysql_query("update `gpg` set `csr`='../csr/gpg-$id.csr' where `id`='$id'");
|
|
||||||
|
|
||||||
waitForResult('gpg', $id);
|
waitForResult('gpg', $id);
|
||||||
}
|
|
||||||
|
|
||||||
showheader(_("Welcome to CAcert.org"));
|
showheader(_("Welcome to CAcert.org"));
|
||||||
echo $resulttable;
|
echo $resulttable;
|
||||||
|
|
Loading…
Reference in a new issue