diff options
author | Renato Botelho <garga@FreeBSD.org> | 2014-01-24 08:33:31 -0200 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2014-01-24 08:33:31 -0200 |
commit | 2ec95f1ffb9231674f3619a641c1005b9ee55853 (patch) | |
tree | cdda6c995c239c1493c3810006fc2b2b3984b4c1 /etc/inc/system.inc | |
parent | 5459701254d951eff2e46250deb76b9504a07fb8 (diff) | |
download | pfsense-2ec95f1ffb9231674f3619a641c1005b9ee55853.zip pfsense-2ec95f1ffb9231674f3619a641c1005b9ee55853.tar.gz |
Fix openssl path
Diffstat (limited to 'etc/inc/system.inc')
-rw-r--r-- | etc/inc/system.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc index 4358f5c..cf04fc6 100644 --- a/etc/inc/system.inc +++ b/etc/inc/system.inc @@ -856,8 +856,8 @@ function system_webgui_start() { $cert = array(); $cert['refid'] = uniqid(); $cert['descr'] = gettext("webConfigurator default"); - mwexec("/usr/local/bin/openssl genrsa 1024 > {$g['tmp_path']}/ssl.key"); - mwexec("/usr/local/bin/openssl req -new -x509 -nodes -sha256 -days 2000 -key {$g['tmp_path']}/ssl.key > {$g['tmp_path']}/ssl.crt"); + mwexec("/usr/bin/openssl genrsa 1024 > {$g['tmp_path']}/ssl.key"); + mwexec("/usr/bin/openssl req -new -x509 -nodes -sha256 -days 2000 -key {$g['tmp_path']}/ssl.key > {$g['tmp_path']}/ssl.crt"); $crt = file_get_contents("{$g['tmp_path']}/ssl.crt"); $key = file_get_contents("{$g['tmp_path']}/ssl.key"); unlink("{$g['tmp_path']}/ssl.key"); |