diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-12-15 19:25:31 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-12-15 19:25:31 +0000 |
commit | 40b9f8c0a4468b563efe96b70a1ab171b70f4fbe (patch) | |
tree | 5aa1c4a9d3d773b717fc158d135f873a0d94223a /etc/inc/captiveportal.inc | |
parent | c69f4c258e9f07e032735cc61622c59acb70fad1 (diff) | |
download | pfsense-40b9f8c0a4468b563efe96b70a1ab171b70f4fbe.zip pfsense-40b9f8c0a4468b563efe96b70a1ab171b70f4fbe.tar.gz |
Setup captive portal for HTTPS when enabled.
Ticket #732
Diffstat (limited to 'etc/inc/captiveportal.inc')
-rw-r--r-- | etc/inc/captiveportal.inc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc index 9505095..c8f5a6a 100644 --- a/etc/inc/captiveportal.inc +++ b/etc/inc/captiveportal.inc @@ -192,6 +192,11 @@ EOD; */ $use_fastcgi = false; + if(isset($config['captiveportal']['httpslogin'])) { + $cert = base64_decode($config['captiveportal']['certificate']); + $key = base64_decode($config['captiveportal']['private-key']); + } + /* generate lighttpd configuration */ system_generate_lighty_config("{$g['varetc_path']}/lighty-CaptivePortal.conf", $cert, $key, "lighty-CaptivePortal.pid", "8000", "/usr/local/captiveportal/", |