update
@ -0,0 +1,20 @@
|
|||||||
|
<? /*
|
||||||
|
Copyright (C) 2004 by Duane Groth <duane_at_CAcert_dot_org>
|
||||||
|
|
||||||
|
This file is part of CAcert.
|
||||||
|
|
||||||
|
CAcert has been released under the CAcert Source License
|
||||||
|
which can be found included with these source files or can
|
||||||
|
be downloaded from the internet from the following address:
|
||||||
|
http://www.cacert.org/src-lic.php
|
||||||
|
|
||||||
|
CAcert is distributed WITHOUT ANY WARRANTY; without even
|
||||||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||||
|
PARTICULAR PURPOSE. See the License for more details.
|
||||||
|
*/ ?>
|
||||||
|
<p><?=_("Paste your CSR below...")?></p>
|
||||||
|
<form method="post" action="account.php">
|
||||||
|
<textarea name="CSR" cols="80" rows="15"></textarea><br>
|
||||||
|
<input type="submit" name="process" value="<?=_("Submit")?>">
|
||||||
|
<input type="hidden" name="oldid" value="<?=$id?>">
|
||||||
|
</form>
|
@ -0,0 +1,29 @@
|
|||||||
|
<? /*
|
||||||
|
Copyright (C) 2004 by Duane Groth <duane_at_CAcert_dot_org>
|
||||||
|
|
||||||
|
This file is part of CAcert.
|
||||||
|
|
||||||
|
CAcert has been released under the CAcert Source License
|
||||||
|
which can be found included with these source files or can
|
||||||
|
be downloaded from the internet from the following address:
|
||||||
|
http://www.cacert.org/src-lic.php
|
||||||
|
|
||||||
|
CAcert is distributed WITHOUT ANY WARRANTY; without even
|
||||||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||||
|
PARTICULAR PURPOSE. See the License for more details.
|
||||||
|
*/ ?>
|
||||||
|
<?
|
||||||
|
$_POST['level'] = intval($_POST['level']);
|
||||||
|
if($_POST['level'] < 0 || $_POST['level'] > 1)
|
||||||
|
$_POST['level'] = 0;
|
||||||
|
?>
|
||||||
|
<p><?=_("Paste your GPG key below...")?></p>
|
||||||
|
<form method="post" action="gpg.php">
|
||||||
|
<textarea name="CSR" cols="80" rows="15"><?=$_POST['CSR']?></textarea><br>
|
||||||
|
<input type="radio" name="level" value="0"<? if($_POST['level'] == 0) echo " checked"; ?>> Low Trust GPG Key<br>
|
||||||
|
<? if($_SESSION['profile']['points'] >= 100) { ?>
|
||||||
|
<input type="radio" name="level" value="1"<? if($_POST['level'] == 1) echo " checked"; ?>> High Trust GPG Key<br>
|
||||||
|
<? } ?>
|
||||||
|
<input type="submit" name="process" value="<?=_("Submit")?>">
|
||||||
|
<input type="hidden" name="oldid" value="<?=$id?>">
|
||||||
|
</form>
|
@ -0,0 +1,75 @@
|
|||||||
|
<? /*
|
||||||
|
Copyright (C) 2004 by Duane Groth <duane_at_CAcert_dot_org>
|
||||||
|
|
||||||
|
This file is part of CAcert.
|
||||||
|
|
||||||
|
CAcert has been released under the CAcert Source License
|
||||||
|
which can be found included with these source files or can
|
||||||
|
be downloaded from the internet from the following address:
|
||||||
|
http://www.cacert.org/src-lic.php
|
||||||
|
|
||||||
|
CAcert is distributed WITHOUT ANY WARRANTY; without even
|
||||||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||||
|
PARTICULAR PURPOSE. See the License for more details.
|
||||||
|
*/ ?>
|
||||||
|
<table align="center" valign="middle" border="0" cellspacing="0" cellpadding="0" class="wrapper">
|
||||||
|
<tr>
|
||||||
|
<td colspan="5" class="title"><?=_("Client Certificates")?></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="DataTD"><?=_("Status")?></td>
|
||||||
|
<td class="DataTD"><?=_("Trust Level")?></td>
|
||||||
|
<td class="DataTD"><?=_("Email Address")?></td>
|
||||||
|
<td class="DataTD"><?=_("Expires")?></td>
|
||||||
|
|
||||||
|
<?
|
||||||
|
$query = "select UNIX_TIMESTAMP(`issued`) as `issued`,
|
||||||
|
UNIX_TIMESTAMP(`expire`) - UNIX_TIMESTAMP() as `timeleft`,
|
||||||
|
UNIX_TIMESTAMP(`expire`) as `expired`,
|
||||||
|
`expire` as `expires`, `id`, `level`, `email`
|
||||||
|
`email` from `gpg` where `memid`='".$_SESSION[profile][id]."'
|
||||||
|
ORDER BY `issued` desc";
|
||||||
|
//echo $query."<br>\n";
|
||||||
|
$res = mysql_query($query);
|
||||||
|
if(mysql_num_rows($res) <= 0)
|
||||||
|
{
|
||||||
|
?>
|
||||||
|
<tr>
|
||||||
|
<td colspan="5" class="DataTD"><?=_("No PGP/GPG certificates are currently listed.")?></td>
|
||||||
|
</tr>
|
||||||
|
<? } else {
|
||||||
|
while($row = mysql_fetch_assoc($res))
|
||||||
|
{
|
||||||
|
if($row['timeleft'] > 0)
|
||||||
|
$verified = _("Valid");
|
||||||
|
if($row['timeleft'] < 0)
|
||||||
|
$verified = _("Expired");
|
||||||
|
if($row['expired'] == 0)
|
||||||
|
$verified = _("Pending");
|
||||||
|
|
||||||
|
$trust = _("High Trust");
|
||||||
|
if($row['level'] != 1)
|
||||||
|
$trust = _("Low Trust");
|
||||||
|
?>
|
||||||
|
<tr>
|
||||||
|
<? if($verified == _("Valid")) { ?>
|
||||||
|
<td class="DataTD"><?=$verified?></td>
|
||||||
|
<td class="DataTD"><?=$trust?></td>
|
||||||
|
<td class="DataTD"><a href="gpg.php?id=3&cert=<?=$row[id]?>"><?=$row['email']?></a></td>
|
||||||
|
<? } else if($verified == _("Pending")) { ?>
|
||||||
|
<td class="DataTD"><?=$verified?></td>
|
||||||
|
<td class="DataTD"><?=$trust?></td>
|
||||||
|
<td class="DataTD"><?=$row[CN]?></td>
|
||||||
|
<? } else { ?>
|
||||||
|
<td class="DataTD"><?=$verified?></td>
|
||||||
|
<td class="DataTD"><?=$trust?></td>
|
||||||
|
<td class="DataTD"><a href="account.php?id=6&cert=<?=$row[id]?>"><?=$row[CN]?></a></td>
|
||||||
|
<? } ?>
|
||||||
|
<td class="DataTD"><?=$row[expires]?></td>
|
||||||
|
</tr>
|
||||||
|
<? } ?>
|
||||||
|
<? } ?>
|
||||||
|
</table>
|
||||||
|
<input type="hidden" name="oldid" value="<?=$id?>">
|
||||||
|
</form>
|
||||||
|
<p><?=_("From here you can delete pending requests, or revoke valid certificates.")?></p>
|
@ -0,0 +1,31 @@
|
|||||||
|
<? /*
|
||||||
|
Copyright (C) 2004 by Duane Groth <duane_at_CAcert_dot_org>
|
||||||
|
|
||||||
|
This file is part of CAcert.
|
||||||
|
|
||||||
|
CAcert has been released under the CAcert Source License
|
||||||
|
which can be found included with these source files or can
|
||||||
|
be downloaded from the internet from the following address:
|
||||||
|
http://www.cacert.org/src-lic.php
|
||||||
|
|
||||||
|
CAcert is distributed WITHOUT ANY WARRANTY; without even
|
||||||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||||
|
PARTICULAR PURPOSE. See the License for more details.
|
||||||
|
*/ ?>
|
||||||
|
<?
|
||||||
|
$certid = $_SESSION['_config']['cert'];
|
||||||
|
$query = "select * from `gpg` where `id`='$certid' and `memid`='".$_SESSION[profile][id]."'";
|
||||||
|
$res = mysql_query($query);
|
||||||
|
if(mysql_num_rows($res) <= 0)
|
||||||
|
{
|
||||||
|
showheader(_("My CAcert.org Account!"));
|
||||||
|
echo _("No such PGP/GPG certificates attached to your account.");
|
||||||
|
showfooter();
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
$row = mysql_fetch_assoc($res);
|
||||||
|
?>
|
||||||
|
<h3><?=_("Below is your PGP/GPG Certificate")?></h3>
|
||||||
|
<pre>
|
||||||
|
<? readfile($row[crt]); ?>
|
||||||
|
</pre>
|
@ -0,0 +1,66 @@
|
|||||||
|
#!/usr/bin/php -q
|
||||||
|
<? /*
|
||||||
|
Copyright (C) 2004 by Duane Groth <duane_at_CAcert_dot_org>
|
||||||
|
|
||||||
|
This file is part of CAcert.
|
||||||
|
|
||||||
|
CAcert has been released under a CAcert Source License
|
||||||
|
which can be found included with these source files or can
|
||||||
|
be downloaded from the internet from the following address:
|
||||||
|
http://www.cacert.org/src-lic.php
|
||||||
|
|
||||||
|
CAcert is distributed WITHOUT ANY WARRANTY; without even
|
||||||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||||
|
PARTICULAR PURPOSE. See the License for more details.
|
||||||
|
*/
|
||||||
|
include_once("../includes/mysql.php");
|
||||||
|
|
||||||
|
$query = "select * from `gpg` where `crt`=''";
|
||||||
|
$res = mysql_query($query);
|
||||||
|
while($row = mysql_fetch_assoc($res))
|
||||||
|
{
|
||||||
|
$row['crt'] = "../crt/gpg-".$row['id'].".crt";
|
||||||
|
|
||||||
|
$do = `gpg --homedir /root/.gnupg --import $row[csr] 2>&1`;
|
||||||
|
|
||||||
|
$extra = "";
|
||||||
|
if(intval($row['level']) != 1)
|
||||||
|
$extra = " --default-key lowgpg@cacert.org";
|
||||||
|
|
||||||
|
$extras = "";
|
||||||
|
if($row['multiple'] == 1)
|
||||||
|
$extras .= " echo \"y\";";
|
||||||
|
if($row['expires'] == 1)
|
||||||
|
$extras .= " echo \"n\";";
|
||||||
|
|
||||||
|
$do = `( $extras echo "365"; echo "y"; echo "3"; echo "y")|gpg$extra --homedir /root/.gnupg --batch --no-tty --command-fd 0 \
|
||||||
|
--status-fd 1 --cert-policy-url http://www.cacert.org/index.php?id=10 \
|
||||||
|
--ask-cert-expire --sign-key $row[email] 2>&1`;
|
||||||
|
$do = `gpg --homedir /root/.gnupg --export --armor $row[email] > $row[crt]`;
|
||||||
|
$do = `gpg --homedir /root/.gnupg --batch --yes --delete-key $row[email] 2>&1`;
|
||||||
|
|
||||||
|
$user = mysql_fetch_assoc(mysql_query("select * from `users` where `id`='$row[memid]'"));
|
||||||
|
if($user['language'] != "")
|
||||||
|
{
|
||||||
|
$userlang = $user['language'];
|
||||||
|
putenv("LANG=".$_SESSION['_config']['translations'][$userlang]);
|
||||||
|
setlocale(LC_ALL, $_SESSION['_config']['translations'][$userlang]);
|
||||||
|
} else {
|
||||||
|
putenv("LANG=en_AU");
|
||||||
|
setlocale(LC_ALL, "en_AU");
|
||||||
|
}
|
||||||
|
if(filesize($row[crt]) > 0)
|
||||||
|
{
|
||||||
|
$query = "update `gpg` set `crt`='$row[crt]', `issued`=NOW(), `expire`=FROM_UNIXTIME(UNIX_TIMESTAMP(NOW()) + 31536000) where `id`='".$row['id']."'";
|
||||||
|
mysql_query($query);
|
||||||
|
$body = _("Hi")." $user[fname],\n\n";
|
||||||
|
$body .= sprintf(_("You can collect your certificate for %s by going to the following location:")."\n\n", $row['email']);
|
||||||
|
$body .= "https://www.cacert.org/gpg.php?id=3&cert=$row[id]\n\n";
|
||||||
|
$body .= _("Best regards")."\n"._("CAcert.org Support!");
|
||||||
|
mail($user[email], "[CAcert.org] Your GPG/PGP Key", $body, "From: CAcert-Support <duane@cacert.org>");
|
||||||
|
} else {
|
||||||
|
$query = "delete from `gpg` where `id`='".$row['id']."'";
|
||||||
|
mysql_query($query);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
@ -0,0 +1,94 @@
|
|||||||
|
%!PS-Adobe-3.0
|
||||||
|
%%BoundingBox: 0 0 596 842
|
||||||
|
%%Title:
|
||||||
|
%%Creator: gpg-key2ps 0.1
|
||||||
|
%%CreationDate: Mon Sep 27 01:14:05 EST 2004
|
||||||
|
%%Pages: 1
|
||||||
|
%%EndComments
|
||||||
|
|
||||||
|
%%Page: 1 1
|
||||||
|
|
||||||
|
/w 596 def
|
||||||
|
/h 842 def
|
||||||
|
|
||||||
|
/Times-Roman findfont 9 scalefont setfont
|
||||||
|
|
||||||
|
/newline {
|
||||||
|
/y y 10 sub def
|
||||||
|
} def
|
||||||
|
|
||||||
|
/hline {
|
||||||
|
30 y 3 add moveto
|
||||||
|
w 2 div 30 sub y 3 add lineto stroke
|
||||||
|
newline
|
||||||
|
} def
|
||||||
|
|
||||||
|
/needhline {
|
||||||
|
/condhline { hline } def
|
||||||
|
} def
|
||||||
|
|
||||||
|
/noneedhline {
|
||||||
|
/condhline { } def
|
||||||
|
} def
|
||||||
|
|
||||||
|
/pub {
|
||||||
|
condhline
|
||||||
|
20 y moveto (pub) show
|
||||||
|
40 y moveto show show (/) show show
|
||||||
|
120 y moveto show
|
||||||
|
170 y moveto show
|
||||||
|
newline
|
||||||
|
needhline
|
||||||
|
} def
|
||||||
|
|
||||||
|
/fpr {
|
||||||
|
40 y moveto (Key fingerprint = ) show show
|
||||||
|
newline
|
||||||
|
} def
|
||||||
|
|
||||||
|
/uid {
|
||||||
|
20 y moveto (uid) show
|
||||||
|
170 y moveto show
|
||||||
|
newline
|
||||||
|
} def
|
||||||
|
|
||||||
|
/revuid {} def
|
||||||
|
|
||||||
|
/sbk {
|
||||||
|
20 y moveto (sub) show
|
||||||
|
40 y moveto show show (/) show show
|
||||||
|
120 y moveto show
|
||||||
|
newline
|
||||||
|
} def
|
||||||
|
|
||||||
|
/key {
|
||||||
|
noneedhline
|
||||||
|
(CA Cert Signing Authority (Root CA) <gpg@cacert.org>) (2003-07-11) (65D0FD58) (D) (1024) pub
|
||||||
|
(A31D 4F81 EF4E BD07 B456 FA04 D2BB 0D01 65D0 FD58) fpr
|
||||||
|
(2003-07-11) (113ED0F2) (g) (2048) sbk
|
||||||
|
} def
|
||||||
|
|
||||||
|
/numlines 3 def
|
||||||
|
/num w 16 sub 10 div numlines div def
|
||||||
|
|
||||||
|
/column {
|
||||||
|
/y w 10 sub def
|
||||||
|
1 1 num {
|
||||||
|
/upper y 10 add def
|
||||||
|
key
|
||||||
|
newline
|
||||||
|
/lower y 10 add def
|
||||||
|
0 upper h 2 div upper h 2 div lower 0 lower 0 upper moveto lineto lineto lineto lineto stroke
|
||||||
|
} for
|
||||||
|
} def
|
||||||
|
|
||||||
|
w 0 translate
|
||||||
|
90 rotate
|
||||||
|
column
|
||||||
|
h 2 div 0 translate
|
||||||
|
column
|
||||||
|
|
||||||
|
showpage
|
||||||
|
|
||||||
|
%%Trailer
|
||||||
|
%%EOF
|
After Width: | Height: | Size: 76 KiB |
After Width: | Height: | Size: 39 KiB |
After Width: | Height: | Size: 10 KiB |
After Width: | Height: | Size: 6.0 KiB |
After Width: | Height: | Size: 7.1 KiB |
After Width: | Height: | Size: 8.0 KiB |
After Width: | Height: | Size: 7.5 KiB |
After Width: | Height: | Size: 6.8 KiB |
After Width: | Height: | Size: 6.8 KiB |
After Width: | Height: | Size: 5.8 KiB |
After Width: | Height: | Size: 122 KiB |
After Width: | Height: | Size: 14 KiB |
After Width: | Height: | Size: 18 KiB |
After Width: | Height: | Size: 8.9 KiB |
After Width: | Height: | Size: 26 KiB |
After Width: | Height: | Size: 12 KiB |
@ -0,0 +1,32 @@
|
|||||||
|
<?
|
||||||
|
loadem("index");
|
||||||
|
showheader(_("Welcome to CAcert.org"));
|
||||||
|
?>
|
||||||
|
<h1>CAcert Logos</h1>
|
||||||
|
|
||||||
|
<p>Feel free to copy, use, change, ... the following logos. I created them
|
||||||
|
using the <a href="http://www.cacert.org">CAcert.org</a> site logo and some gimp
|
||||||
|
magic. Send comments or suggestions to <a href="/kontakt/">Chris</a>. Licence: Whatever. I don't care.</p>
|
||||||
|
|
||||||
|
<img src="logos/cacert1.png" alt="www.cacert.org" border="0" /><br /><br />
|
||||||
|
<img src="logos/cacert-free-certificates2.png" alt="www.cacert.org" border="0" />
|
||||||
|
<img src="logos/cacert-free-certificates3.png" alt="www.cacert.org" border="0" />
|
||||||
|
<img src="logos/cacert-free-certificates4.png" alt="www.cacert.org" border="0" /><br /><br />
|
||||||
|
<img src="logos/cacert-secured3.png" alt="www.cacert.org" border="0" />
|
||||||
|
<img src="logos/cacert-secured4.png" alt="www.cacert.org" border="0" />
|
||||||
|
<img src="logos/cacert-secured5.png" alt="www.cacert.org" border="0" /><br /><br />
|
||||||
|
<img src="logos/cacert-secured7.png" alt="www.cacert.org" border="0" /><br /><br />
|
||||||
|
<img src="logos/cacert-secure-site.png" alt="www.cacert.org" border="0" />
|
||||||
|
<img src="logos/cacert-secure-site2.png" alt="www.cacert.org" border="0" /><br /><br />
|
||||||
|
<img src="logos/cacert-grey.png" alt="www.cacert.org" border="0" />
|
||||||
|
<img src="logos/cacert-grey2.png" alt="www.cacert.org" border="0" /><br /><br />
|
||||||
|
|
||||||
|
<img src="logos/small-ssl-secured-site.png" alt="www.cacert.org" border="0" />
|
||||||
|
<img src="logos/small-ssl-security.png" alt="www.cacert.org" border="0" /><br /><br />
|
||||||
|
|
||||||
|
</td></tr></table>
|
||||||
|
|
||||||
|
<?
|
||||||
|
showfooter();
|
||||||
|
?>
|
||||||
|
|