Line 45... |
Line 45... |
45 |
$l_private_key = "Clé privée (.key) :";
|
45 |
$l_private_key = "Clé privée (.key) :";
|
46 |
$l_certificate = "Certificat (.crt) :";
|
46 |
$l_certificate = "Certificat (.crt) :";
|
47 |
$l_server_chain = "Chaîne de certification (si nécéssaire : .crt) :";
|
47 |
$l_server_chain = "Chaîne de certification (si nécéssaire : .crt) :";
|
48 |
$l_default_cert = "Revenir au certificat d'origine";
|
48 |
$l_default_cert = "Revenir au certificat d'origine";
|
49 |
$l_import = "Importer";
|
49 |
$l_import = "Importer";
|
- |
|
50 |
$l_current_certificate = "Certificat actuel";
|
- |
|
51 |
$l_validated = "Validé par :";
|
50 |
|
52 |
|
51 |
} else {
|
53 |
} else {
|
52 |
$l_network_title = "Network configuration";
|
54 |
$l_network_title = "Network configuration";
|
53 |
$l_extif_legend = " (Internet connected interface)";
|
55 |
$l_extif_legend = " (Internet connected interface)";
|
54 |
$l_intif_legend = " (Private network)";
|
56 |
$l_intif_legend = " (Private network)";
|
Line 74... |
Line 76... |
74 |
$l_private_key = "Private key (.key) :";
|
76 |
$l_private_key = "Private key (.key) :";
|
75 |
$l_certificate = "Certificate (.crt) :";
|
77 |
$l_certificate = "Certificate (.crt) :";
|
76 |
$l_server_chain = "Server-chain (if necessary : .crt) :";
|
78 |
$l_server_chain = "Server-chain (if necessary : .crt) :";
|
77 |
$l_default_cert = "Back to default certificate";
|
79 |
$l_default_cert = "Back to default certificate";
|
78 |
$l_import = "Import";
|
80 |
$l_import = "Import";
|
- |
|
81 |
$l_current_certificate = "Current certificate";
|
- |
|
82 |
$l_validated = "Validated by :";
|
- |
|
83 |
|
79 |
}
|
84 |
}
|
80 |
if (isset($_POST['choix'])){$choix=$_POST['choix'];} else {$choix="";}
|
85 |
if (isset($_POST['choix'])){$choix=$_POST['choix'];} else {$choix="";}
|
81 |
switch ($choix)
|
86 |
switch ($choix)
|
82 |
{
|
87 |
{
|
83 |
case 'DHCP_On' :
|
88 |
case 'DHCP_On' :
|
Line 277... |
Line 282... |
277 |
<?php echo $l_certificate;?><input type="file" name="crt"><br>
|
282 |
<?php echo $l_certificate;?><input type="file" name="crt"><br>
|
278 |
<?php echo $l_server_chain;?><input type="file" name="sc">
|
283 |
<?php echo $l_server_chain;?><input type="file" name="sc">
|
279 |
<input type="hidden" name="MAX_FILE_SIZE" value=<?php echo $maxsize;?>><br>
|
284 |
<input type="hidden" name="MAX_FILE_SIZE" value=<?php echo $maxsize;?>><br>
|
280 |
<input type="submit" <?php echo "value=\"".$l_import."\""?>>
|
285 |
<input type="submit" <?php echo "value=\"".$l_import."\""?>>
|
281 |
</form>
|
286 |
</form>
|
- |
|
287 |
<?php
|
- |
|
288 |
$domain = exec("/bin/openssl x509 -noout -subject -in /etc/pki/tls/certs/alcasar.crt | sed -n '/^subject/s/^.*CN=//p'");
|
- |
|
289 |
$organization = exec("/bin/openssl x509 -noout -subject -in /etc/pki/tls/certs/alcasar.crt | sed -n '/^subject/s/^.*O=//p' | sed -n 's/\/.*$//p'");
|
- |
|
290 |
$CAdomain = exec("/bin/openssl x509 -noout -issuer -in /etc/pki/tls/certs/alcasar.crt | sed -n '/^issuer/s/^.*CN=//p'");
|
- |
|
291 |
$CAorganization = exec("/bin/openssl x509 -noout -issuer -in /etc/pki/tls/certs/alcasar.crt | sed -n '/^issuer/s/^.*O=//p' | sed -n 's/\/.*$//p'");
|
- |
|
292 |
|
- |
|
293 |
echo "<br><br>\n";
|
- |
|
294 |
echo "<h3>".$l_current_certificate."</h3>\n";
|
- |
|
295 |
echo "Common name : ".$domain."<br>\n";
|
- |
|
296 |
echo "Organization : ".$organization."<br/>\n";
|
- |
|
297 |
echo "<h4>". $l_validated ."</h4>\n";
|
- |
|
298 |
echo "Common name : ".$CAdomain."<br>\n";
|
- |
|
299 |
echo "Organization : ".$CAorganization."<br>\n";
|
- |
|
300 |
?>
|
282 |
</td><td>
|
301 |
</td><td>
|
283 |
<form method="post" action="network.php">
|
302 |
<form method="post" action="network.php">
|
284 |
<input type="hidden" name="default">
|
303 |
<input type="hidden" name="default">
|
285 |
<input type="submit" <?php echo "value=\"".$l_default_cert."\""?>>
|
304 |
<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";}?> >
|
286 |
</form>
|
305 |
</form>
|
287 |
</td>
|
306 |
</td>
|
288 |
</tr>
|
307 |
</tr>
|
289 |
</table>
|
308 |
</table>
|
290 |
|
309 |
|