summaryrefslogtreecommitdiffstats
path: root/etc/phpshellsessions
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2014-10-15 14:01:55 -0400
committerjim-p <jimp@pfsense.org>2014-10-15 14:01:55 -0400
commitb6dbbebc0f501c6dfedf98cc78e5acfa8a881edd (patch)
treeccdacc0219286570774f5f2e21421dc5550b8531 /etc/phpshellsessions
parent2cf2c62b2748e8644147c7d81167ca6d29eb6783 (diff)
downloadpfsense-b6dbbebc0f501c6dfedf98cc78e5acfa8a881edd.zip
pfsense-b6dbbebc0f501c6dfedf98cc78e5acfa8a881edd.tar.gz
Add command line script to generate and activate a new GUI certificate.
Diffstat (limited to 'etc/phpshellsessions')
-rw-r--r--etc/phpshellsessions/generateguicert8
1 files changed, 8 insertions, 0 deletions
diff --git a/etc/phpshellsessions/generateguicert b/etc/phpshellsessions/generateguicert
new file mode 100644
index 0000000..925ab60
--- /dev/null
+++ b/etc/phpshellsessions/generateguicert
@@ -0,0 +1,8 @@
+require_once("system.inc");
+
+echo gettext("Generating a new self-signed SSL certificate for the GUI...");
+$cert = system_webgui_create_certificate();
+echo gettext("Done.\n");
+echo gettext("Restarting webConfigurator...");
+send_event("service restart webgui");
+echo gettext("Done.\n"); \ No newline at end of file
OpenPOWER on IntegriCloud