summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-10-27 21:46:24 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-10-27 21:46:24 +0000
commit20cbc4ece50a8121b51c4f2e310d2f24e1c35e05 (patch)
tree6bbadba9c985c4f682397f8d99356f9776c7a8ce /usr
parent5e46b37c898c6a2401cb6dc3588f1cf86ef58127 (diff)
downloadpfsense-20cbc4ece50a8121b51c4f2e310d2f24e1c35e05.zip
pfsense-20cbc4ece50a8121b51c4f2e310d2f24e1c35e05.tar.gz
Mount image as RW before creating certs.
Ticket #647
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/system_advanced_create_certs.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr/local/www/system_advanced_create_certs.php b/usr/local/www/system_advanced_create_certs.php
index 78a4a54..94fc5c7 100755
--- a/usr/local/www/system_advanced_create_certs.php
+++ b/usr/local/www/system_advanced_create_certs.php
@@ -63,6 +63,7 @@ if ($_POST) {
$commonname=$_POST['commonname'];
/* Write out /etc/ssl/openssl.cnf */
+ conf_mount_rw();
$fd = fopen("/etc/ssl/openssl.cnf", "w");
fwrite($fd, "");
fwrite($fd, "[ req ]\n");
@@ -253,5 +254,7 @@ include("head.inc");
</html>
<?php
-}
+}
+ conf_mount_ro();
+
?>
OpenPOWER on IntegriCloud