bug 1221: added `deleted` = 0
[cacert-devel.git] / www / analyse.php
1 <? /*
2 LibreSSL - CAcert web application
3 Copyright (C) 2004-2008 CAcert Inc.
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; version 2 of the License.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 */ ?>
18 <?
19 loadem("index");
20
21 showheader(_("Welcome to CAcert.org"));
22
23
24
25 if($_POST['csr'] == "")
26 { ?>
27 <form method="post">
28 <p>Please paste the PEM encoded certificate signing request you would like to analyze in the text area below:</p>
29 <p><textarea name="csr" cols="64" rows="12"></textarea></p>
30 <p><input type="submit" name="process" value="<?=_("Analyse")?>"></p>
31 </form>
32 <? } else {
33 echo "<pre>".htmlspecialchars(print_r(openssl_x509_parse(openssl_x509_read($_POST['csr'])),true))."</pre>";
34 }
35 showfooter();
36 ?>