cacert-webdb/www/analyse.php

36 lines
1 KiB
PHP
Raw Normal View History

2005-02-16 18:11:53 +00:00
<? /*
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"));
2007-01-10 04:01:15 +00:00
2005-02-16 18:11:53 +00:00
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 {
2007-01-10 04:01:15 +00:00
echo "<pre>";
2005-02-16 18:11:53 +00:00
print_r(openssl_x509_parse(openssl_x509_read($_POST['csr'])));
2007-01-10 04:01:15 +00:00
echo "</pre>";
2005-02-16 18:11:53 +00:00
}
showfooter();
?>