Esempio n. 1
0
include STORE_DIR . '/config/config.php';
include './include/common.php';
include './include/my_functions.php';
include './include/openssl_functions.php';
$stage = gpvar('stage');
switch ($stage) {
    case 'dl_root':
        upload("{$config['cacert_pem']}", "{$config['ca_prefix']}cacert.crt", 'application/x-x509-ca-cert');
        break;
    case 'display_root':
        printHeader('public');
        ?>
	<center><h2>Root Certificate (PEM Encoded)</h2></center>
	<p>
	<pre><?php 
        echo CA_get_root_pem();
        ?>
</pre>
	<p>
	<form action=<?php 
        echo $PHP_SELF;
        ?>
 method=post>
		<input type=submit name=submit value="Back to Menu">
	</form>
	<?php 
        break;
    case 'dl_crl':
        upload("{$config['cacrl_der']}", "{$config['ca_prefix']}cacrl.crl", 'application/pkix-crl');
        break;
    default:
Esempio n. 2
0
include STORE_DIR . '/config/config.php';
include './include/common.php';
include './include/my_functions.php';
include './include/openssl_functions.php';
$stage = gpvar('stage');
switch ($stage) {
    case 'dl_root':
        upload("{$config['cacert_pem']}", "{$config['ca_prefix']}cacert.crt", 'application/x-x509-ca-cert');
        break;
    case 'display_root':
        printHeader('public');
        ?>
	<div style="text-align:center"><h2>Root Certificate (PEM Encoded)</h2></div>
	<p>
	<pre><?php 
        print CA_get_root_pem();
        ?>
</pre>
	<p>
	<form action="<?php 
        print $PHP_SELF;
        ?>
" method="post">
		<input type="submit" name="submit" value="Back to Menu">
	</form>
	<?php 
        break;
    case 'dl_crl':
        upload("{$config['cacrl_der']}", "{$config['ca_prefix']}cacrl.crl", 'application/pkix-crl');
        break;
    default: