From 1c879ff3fac8b4790b3db70f5c5be0f7be2ccfb8 Mon Sep 17 00:00:00 2001 From: Colin Smith Date: Fri, 1 Jul 2005 05:25:20 +0000 Subject: Fix and clean up. submitted-by: pfJason (Jason Ellingson) --- usr/local/www/vpn_ipsec_ca_edit_create_cert.php | 427 ++++++++++++------------ 1 file changed, 207 insertions(+), 220 deletions(-) (limited to 'usr/local/www/vpn_ipsec_ca_edit_create_cert.php') diff --git a/usr/local/www/vpn_ipsec_ca_edit_create_cert.php b/usr/local/www/vpn_ipsec_ca_edit_create_cert.php index d2c03d4..6eb16ce 100755 --- a/usr/local/www/vpn_ipsec_ca_edit_create_cert.php +++ b/usr/local/www/vpn_ipsec_ca_edit_create_cert.php @@ -1,11 +1,11 @@ #!/usr/local/bin/php - - - -<?=gentitle("");?> - - - -
- - -

- - -

One moment please... - cacert.pem "); - //mwexec("cd /tmp/ && /usr/bin/openssl x509 -in cert.csr -out cert.pem -req -signkey cakey.pem"); - $fd = fopen("/tmp/cacert.pem", "r"); - $cacert = fread($fd,8096); - fclose($fd); - $fd = fopen("/tmp/cakey.pem", "r"); - $cakey = fread($fd,8096); - fclose($fd); - $cacertA = ereg_replace("\r","",$cacert); - $cakeyA = ereg_replace("\r","",$cakey); - $cacert = ereg_replace("\n","\\n",$cacert); - $cakey = ereg_replace("\n","\\n",$cakey); - - ?> - - - - + + <?=gentitle('');?> + + + + + + +

+ +

+ +

+ One moment please... +

+ cacert.pem'); + //mwexec('cd /tmp/ && /usr/bin/openssl x509 -in cert.csr -out cert.pem -req -signkey cakey.pem'); + $fd = fopen('/tmp/cacert.pem', 'r'); + $cacert = fread($fd, 8096); + fclose($fd); + $fd = fopen('/tmp/cakey.pem', 'r'); + $cakey = fread($fd, 8096); + fclose($fd); + $cacertA = ereg_replace("\r", '', $cacert); + $cakeyA = ereg_replace("\r", '', $cakey); + $cacert = ereg_replace("\n", '\n', $cacert); + $cakey = ereg_replace("\n", '\n', $cakey); +?> + + +
+ - - - - - - - <?=gentitle("System: Advanced functions");?> - - - -
- -

System: Advanced - Create Certificates

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + <?=gentitle('System: Advanced functions')?> + + + + + + +

+ System: Advanced - Create Certificates +

+
Country Code (2 Letters) - -
State or Province name - -
City name - -
Organization name - -
Organization department - -
Common Name (Your name) - -
  - -
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Country Code (2 Letters)
State or Province name
City name
Organization name
Organization department
Common Name (Your name)
 
+
+ + + + -- cgit v1.1