47,8 → 47,6 |
$l_server_chain = "Chaîne de certification (si nécéssaire : .crt) :"; |
$l_default_cert = "Revenir au certificat d'origine"; |
$l_import = "Importer"; |
$l_current_certificate = "Certificat actuel"; |
$l_validated = "Validé par :"; |
|
} else { |
$l_network_title = "Network configuration"; |
78,9 → 76,6 |
$l_server_chain = "Server-chain (if necessary : .crt) :"; |
$l_default_cert = "Back to default certificate"; |
$l_import = "Import"; |
$l_current_certificate = "Current certificate"; |
$l_validated = "Validated by :"; |
|
} |
if (isset($_POST['choix'])){$choix=$_POST['choix'];} else {$choix="";} |
switch ($choix) |
284,24 → 279,10 |
<input type="hidden" name="MAX_FILE_SIZE" value=<?php echo $maxsize;?>><br> |
<input type="submit" <?php echo "value=\"".$l_import."\""?>> |
</form> |
<?php |
$domain = exec("/bin/openssl x509 -noout -subject -in /etc/pki/tls/certs/alcasar.crt | sed -n '/^subject/s/^.*CN=//p'"); |
$organization = exec("/bin/openssl x509 -noout -subject -in /etc/pki/tls/certs/alcasar.crt | sed -n '/^subject/s/^.*O=//p' | sed -n 's/\/.*$//p'"); |
$CAdomain = exec("/bin/openssl x509 -noout -issuer -in /etc/pki/tls/certs/alcasar.crt | sed -n '/^issuer/s/^.*CN=//p'"); |
$CAorganization = exec("/bin/openssl x509 -noout -issuer -in /etc/pki/tls/certs/alcasar.crt | sed -n '/^issuer/s/^.*O=//p' | sed -n 's/\/.*$//p'"); |
|
echo "<br><br>\n"; |
echo "<h3>".$l_current_certificate."</h3>\n"; |
echo "Common name : ".$domain."<br>\n"; |
echo "Organization : ".$organization."<br/>\n"; |
echo "<h4>". $l_validated ."</h4>\n"; |
echo "Common name : ".$CAdomain."<br>\n"; |
echo "Organization : ".$CAorganization."<br>\n"; |
?> |
</td><td> |
<form method="post" action="network.php"> |
<input type="hidden" name="default"> |
<input type="submit" <?php echo "value=\"".$l_default_cert."\""; if(!file_exists("/etc/pki/tls/certs/alcasar.crt.old") || !file_exists("/etc/pki/tls/private/alcasar.key.old")){ echo "disabled";}?> > |
<input type="submit" <?php echo "value=\"".$l_default_cert."\""?>> |
</form> |
</td> |
</tr> |