Subversion Repositories ALCASAR

Rev

Rev 1748 | Rev 1822 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 1748 Rev 1764
Line 281... Line 281...
281
	<?php echo $l_server_chain;?><input type="file" name="sc">
281
	<?php echo $l_server_chain;?><input type="file" name="sc">
282
	<input type="hidden" name="MAX_FILE_SIZE" value=<?php echo $maxsize;?>><br>
282
	<input type="hidden" name="MAX_FILE_SIZE" value=<?php echo $maxsize;?>><br>
283
	<input type="submit" <?php echo "value=\"".$l_import."\""?>>
283
	<input type="submit" <?php echo "value=\"".$l_import."\""?>>
284
	</form>
284
	</form>
285
<?php
285
<?php
286
$domain = exec("/bin/openssl x509 -noout -subject -in /etc/pki/tls/certs/alcasar.crt | sed -n '/^subject/s/^.*CN=//p' | cut -d'/' -f 1");
286
$cert_subject = exec("/bin/openssl x509 -noout -subject -in /etc/pki/tls/certs/alcasar.crt");
-
 
287
$cert_issuer = exec("/bin/openssl x509 -noout -issuer -in /etc/pki/tls/certs/alcasar.crt");
287
$organization = exec("/bin/openssl x509 -noout -subject -in /etc/pki/tls/certs/alcasar.crt | sed -n '/^subject/s/^.*O=//p' | cut -d'/' -f 1");
288
$cert_expiration_date = exec("/bin/openssl x509 -noout -dates -in /etc/pki/tls/certs/alcasar.crt|grep After|cut -d\"=\" -f2");
-
 
289
$domain = exec("echo $cert_subject | sed -n '/^subject/s/^.*CN=//p' | cut -d'/' -f 1");
-
 
290
$organization = exec("echo $cert_subject | sed -n '/^subject/s/^.*O=//p' | cut -d'/' -f 1");
288
$CAdomain = exec("/bin/openssl x509 -noout -issuer -in /etc/pki/tls/certs/alcasar.crt | sed -n '/^issuer/s/^.*CN=//p' | cut -d'/' -f 1");
291
$CAdomain = exec("echo $cert_issuer | sed -n '/^issuer/s/^.*CN=//p' | cut -d'/' -f 1");
289
$CAorganization = exec("/bin/openssl x509 -noout -issuer -in /etc/pki/tls/certs/alcasar.crt | sed -n '/^issuer/s/^.*O=//p' | cut -d'/' -f 1");
292
$CAorganization = exec("echo $cert_issuer | sed -n '/^issuer/s/^.*O=//p' | cut -d'/' -f 1");
290
 
293
 
291
	echo "<br><br>\n";
294
	echo "<br>";
292
	echo "<h3>".$l_current_certificate."</h3>\n";
295
	echo "<h3>".$l_current_certificate."</h3>";
-
 
296
	echo "Expiration Date : ".$cert_expiration_date."<br>";
293
	echo "Common name : ".$domain."<br>\n";
297
	echo "Common name : ".$domain."<br>";
294
	echo "Organization : ".$organization."<br/>\n";
298
	echo "Organization : ".$organization."<br/>";
295
	echo "<h4>". $l_validated ."</h4>\n";
299
	echo "<h4>". $l_validated ."</h4>";
296
	echo "Common name : ".$CAdomain."<br>\n";
300
	echo "Common name : ".$CAdomain."<br>";
297
	echo "Organization : ".$CAorganization."<br>\n";
301
	echo "Organization : ".$CAorganization."<br>";
298
?>
302
?>
299
	</td><td>
303
	</td><td>
300
	<form method="post" action="network.php">
304
	<form method="post" action="network.php">
301
	<input type="hidden" name="default">
305
	<input type="hidden" name="default">
302
	<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";}?> >
306
	<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";}?>>
303
	</form>
307
	</form>
304
	</td>
308
	</td>
305
	</tr>
309
	</tr>
306
</table>
310
</table>
307
 
311