Subversion Repositories ALCASAR

Rev

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

Rev 1743 Rev 1744
Line 283... Line 283...
283
	<?php echo $l_server_chain;?><input type="file" name="sc">
283
	<?php echo $l_server_chain;?><input type="file" name="sc">
284
	<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>
285
	<input type="submit" <?php echo "value=\"".$l_import."\""?>>
285
	<input type="submit" <?php echo "value=\"".$l_import."\""?>>
286
	</form>
286
	</form>
287
<?php
287
<?php
288
$domain = exec("/bin/openssl x509 -noout -subject -in /etc/pki/tls/certs/alcasar.crt | sed -n '/^subject/s/^.*CN=//p'");
288
$domain = exec("/bin/openssl x509 -noout -subject -in /etc/pki/tls/certs/alcasar.crt | sed -n '/^subject/s/^.*CN=//p' | cut -d'/' -f 1");
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'");
289
$organization = exec("/bin/openssl x509 -noout -subject -in /etc/pki/tls/certs/alcasar.crt | sed -n '/^subject/s/^.*O=//p' | cut -d'/' -f 1");
290
$CAdomain = exec("/bin/openssl x509 -noout -issuer -in /etc/pki/tls/certs/alcasar.crt | sed -n '/^issuer/s/^.*CN=//p'");
290
$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
$CAorganization = exec("/bin/openssl x509 -noout -issuer -in /etc/pki/tls/certs/alcasar.crt | sed -n '/^issuer/s/^.*O=//p' | sed -n 's/\/.*$//p'");
291
$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
 
292
 
293
	echo "<br><br>\n";
293
	echo "<br><br>\n";
294
	echo "<h3>".$l_current_certificate."</h3>\n";
294
	echo "<h3>".$l_current_certificate."</h3>\n";
295
	echo "Common name : ".$domain."<br>\n";
295
	echo "Common name : ".$domain."<br>\n";
296
	echo "Organization : ".$organization."<br/>\n";
296
	echo "Organization : ".$organization."<br/>\n";