diff options
author | jim-p <jimp@pfsense.org> | 2013-01-27 12:20:31 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2013-01-27 12:20:31 -0500 |
commit | dae707f5363fa10bae1257492579c57a0c459fdd (patch) | |
tree | e6973bc5d52fac1e588eb5a58f9c4b345cb8f5a2 /usr | |
parent | 0674bc42c350d9723db0888b85816326157ddd67 (diff) | |
download | pfsense-dae707f5363fa10bae1257492579c57a0c459fdd.zip pfsense-dae707f5363fa10bae1257492579c57a0c459fdd.tar.gz |
Fixup paths when executing OpenSSL.
Diffstat (limited to 'usr')
-rw-r--r-- | usr/local/www/services_captiveportal_vouchers.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/local/www/services_captiveportal_vouchers.php b/usr/local/www/services_captiveportal_vouchers.php index 8139017..d6919f6 100644 --- a/usr/local/www/services_captiveportal_vouchers.php +++ b/usr/local/www/services_captiveportal_vouchers.php @@ -25,7 +25,7 @@ POSSIBILITY OF SUCH DAMAGE. */ /* - pfSense_BUILDER_BINARIES: /usr/local/bin/voucher + pfSense_BUILDER_BINARIES: /usr/local/bin/voucher /usr/local/bin/openssl pfSense_MODULE: captiveportal */ @@ -56,8 +56,8 @@ require("captiveportal.inc"); require_once("voucher.inc"); if($_REQUEST['generatekey']) { - exec("openssl genrsa 64 > /tmp/key64.private"); - exec("openssl rsa -pubout < /tmp/key64.private > /tmp/key64.public"); + exec("/usr/local/bin/openssl genrsa 64 > /tmp/key64.private"); + exec("/usr/local/bin/openssl rsa -pubout < /tmp/key64.private > /tmp/key64.public"); $privatekey = str_replace("\n", "\\n", file_get_contents("/tmp/key64.private")); $publickey = str_replace("\n", "\\n", file_get_contents("/tmp/key64.public")); exec("rm /tmp/key64.private /tmp/key64.public"); |