35 lines
1 KiB
PHP
35 lines
1 KiB
PHP
<? /*
|
|
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.
|
|
*/ ?>
|
|
<?
|
|
loadem("index");
|
|
|
|
showheader(_("Welcome to CAcert.org"));
|
|
|
|
|
|
|
|
if($_POST['csr'] == "")
|
|
{ ?>
|
|
<form method="post" action="<?=$PHP_SELF?>">
|
|
<p>Please paste the PEM encoded certificate signing request you would like to analyze in the text area below:</p>
|
|
<p><textarea name="csr" cols="64" rows="12"></textarea></p>
|
|
<p><input type="submit" name="process" value="<?=_("Analyse")?>"></p>
|
|
</form>
|
|
<? } else {
|
|
echo "<pre>";
|
|
print_r(openssl_x509_parse(openssl_x509_read($_POST['csr'])));
|
|
echo "</pre>";
|
|
}
|
|
showfooter();
|
|
?>
|