From bcf0499394694298bcb2e20f1462af93fda29c13 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Mon, 27 Jun 2005 03:56:09 +0000 Subject: Mount rw before working with /etc --- usr/local/www/vpn_ipsec_ca_edit_create_cert.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'usr') 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 b4914c2..88a374d 100755 --- a/usr/local/www/vpn_ipsec_ca_edit_create_cert.php +++ b/usr/local/www/vpn_ipsec_ca_edit_create_cert.php @@ -65,6 +65,7 @@ if ($_POST) { $commonname=$_POST['commonname']; /* Write out /etc/ssl/openssl.cnf */ + config_mount_rw(); $fd = fopen("/etc/ssl/openssl.cnf", "w"); fwrite($fd, ""); fwrite($fd, "[ req ]\n"); @@ -139,6 +140,7 @@ if ($_POST) { fwrite($fd, "[ crl_ext ]\n"); fwrite($fd, "authorityKeyIdentifier=keyid:always,issuer:always\n"); fclose($fd); + config_mount_ro(); ?> @@ -157,7 +159,7 @@ if ($_POST) {

One moment please... cacert.pem "); //mwexec("cd /tmp/ && /usr/bin/openssl x509 -in cert.csr -out cert.pem -req -signkey cakey.pem"); @@ -171,7 +173,7 @@ if ($_POST) { $cakeyA = ereg_replace("\r","",$cakey); $cacert = ereg_replace("\n","\\n",$cacert); $cakey = ereg_replace("\n","\\n",$cakey); - config_mount_ro(); + ?>