pull/1/head
root 19 years ago
parent fe08af817e
commit 388ff77720

@ -230,7 +230,7 @@ function hideall() {
</div>
<div id="siteInfo"><a href="account.php?id=37"><?=_("About Us")?></a> | <a href="account.php?id=38"><?=_("Donations")?></a> |
<a href="account.php?id=39"><?=_("Privacy Policy")?></a> | <a href="account.php?id=40"><?=_("Contact Us")?></a>
| &copy;2004 by CAcert</div>
| &copy;2002-2005 by CAcert</div>
</div>
</body>
</html><?

@ -61,7 +61,7 @@
<? if($verified == _("Valid")) { ?>
<td class="DataTD"><input type="checkbox" name="revokeid[]" value="<?=$row['id']?>"></td>
<td class="DataTD"><?=$verified?></td>
<td class="DataTD"><a href="account.php?id=6&cert=<?=$row['id']?>"><?=$row['CN']?></a></td>
<td class="DataTD"><a href="account.php?id=19&cert=<?=$row['id']?>"><?=$row['CN']?></a></td>
<? } else if($verified == _("Pending")) { ?>
<td class="DataTD"><input type="checkbox" name="delid[]" value="<?=$row['id']?>"></td>
<td class="DataTD"><?=$verified?></td>
@ -69,7 +69,7 @@
<? } else { ?>
<td class="DataTD">&nbsp;</td>
<td class="DataTD"><?=$verified?></td>
<td class="DataTD"><a href="account.php?id=6&cert=<?=$row['id']?>"><?=$row['CN']?></a></td>
<td class="DataTD"><a href="account.php?id=19&cert=<?=$row['id']?>"><?=$row['CN']?></a></td>
<? } ?>
<td class="DataTD"><?=$row['revoke']?></td>
<td class="DataTD"><?=$row['expires']?></td>

@ -162,11 +162,15 @@
while($row = mysql_fetch_assoc($res))
{
$row['crt_name'] = "../crt/orgclient-".$row['id'].".crt";
// if($row['orgid'] == 1)
// $opensslcnf = "/etc/ssl/openssl-ocsp.cnf"; else
if($row['codesign'] == 0)
$opensslcnf = "/etc/ssl/openssl-client.cnf";
else
$opensslcnf = "/etc/ssl/openssl-client-codesign.cnf";
$days = 365;
// echo "/usr/bin/openssl ca -config $opensslcnf -spkac $row[csr_name] -out $row[crt_name].der -days $days -key test -batch\n";
// echo "/usr/bin/openssl x509 -inform DER -in $row[crt_name].der -outform PEM -out $row[crt_name] -text\n";die;
$do = `/usr/bin/openssl ca -config $opensslcnf -spkac $row[csr_name] -out $row[crt_name].der -days $days -key test -batch > /dev/null 2>&1`;
$do = `/usr/bin/openssl x509 -inform DER -in $row[crt_name].der -outform PEM -out $row[crt_name] -text > /dev/null 2>&1`;
if(filesize($row[crt_name]) > 0)

@ -56,6 +56,7 @@
fputs($fp, "basicConstraints = critical, CA:FALSE\n");
fputs($fp, "extendedKeyUsage = clientAuth, serverAuth, nsSGC, msSGC\n");
fputs($fp, "keyUsage = digitalSignature, keyEncipherment\n");
fputs($fp, "authorityInfoAccess = OCSP;URI:http://ocsp.cacert.org:2560\n");
$bits = explode("/", $row['subject']);
foreach($bits as $val)
{
@ -152,6 +153,7 @@
fputs($fp, "basicConstraints = critical, CA:FALSE\n");
fputs($fp, "extendedKeyUsage = clientAuth, serverAuth, nsSGC, msSGC\n");
fputs($fp, "keyUsage = digitalSignature, keyEncipherment\n");
fputs($fp, "authorityInfoAccess = OCSP;URI:http://ocsp.cacert.org:2560\n");
$bits = explode("/", $row['subject']);
foreach($bits as $val)
{

Loading…
Cancel
Save