summaryrefslogtreecommitdiffstats
path: root/src/etc/rc
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2016-06-21 14:26:42 -0300
committerStephen Beaver <sbeaver@netgate.com>2016-06-21 14:46:20 -0400
commit28af9ca0f4b11ce8902df3573d4a42039a7e50cf (patch)
treec21143de19a4e9eccf0b3adbaff070ece21f7d31 /src/etc/rc
parent3e4adb7139b4cddbb06a2aba7e0727d1762b35ee (diff)
downloadpfsense-28af9ca0f4b11ce8902df3573d4a42039a7e50cf.zip
pfsense-28af9ca0f4b11ce8902df3573d4a42039a7e50cf.tar.gz
Create openssl.cnf symlink during boot
(cherry picked from commit 5051739d72d31f8bd250148dfa65213723275310)
Diffstat (limited to 'src/etc/rc')
-rwxr-xr-xsrc/etc/rc9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/etc/rc b/src/etc/rc
index 92d085b..c60e91e 100755
--- a/src/etc/rc
+++ b/src/etc/rc
@@ -373,6 +373,15 @@ echo "done."
# Second upgrade stage
/usr/local/sbin/${product}-upgrade -y -b 2
+# Copy default openssl config file
+[ -d /etc/ssl ] \
+ || mkdir -p /etc/ssl
+[ -f /usr/local/share/${product}/ssl/openssl.cnf ] \
+ && cp -f /usr/local/share/${product}/ssl/openssl.cnf /etc/ssl
+mkdir -p /usr/local/openssl >/dev/null 2>&1
+ln -sf /etc/ssl/openssl.cnf \
+ /usr/local/openssl/openssl.cnf
+
# Run the php.ini setup file and populate
# /usr/local/etc/php.ini
/etc/rc.php_ini_setup 2>/tmp/php_errors.txt
OpenPOWER on IntegriCloud