summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-12-15 19:25:31 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-12-15 19:25:31 +0000
commit40b9f8c0a4468b563efe96b70a1ab171b70f4fbe (patch)
tree5aa1c4a9d3d773b717fc158d135f873a0d94223a /etc
parentc69f4c258e9f07e032735cc61622c59acb70fad1 (diff)
downloadpfsense-40b9f8c0a4468b563efe96b70a1ab171b70f4fbe.zip
pfsense-40b9f8c0a4468b563efe96b70a1ab171b70f4fbe.tar.gz
Setup captive portal for HTTPS when enabled.
Ticket #732
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/captiveportal.inc5
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/",
OpenPOWER on IntegriCloud