diff options
author | jim-p <jimp@pfsense.org> | 2014-10-15 14:01:55 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2014-10-15 14:01:55 -0400 |
commit | b6dbbebc0f501c6dfedf98cc78e5acfa8a881edd (patch) | |
tree | ccdacc0219286570774f5f2e21421dc5550b8531 /etc/phpshellsessions | |
parent | 2cf2c62b2748e8644147c7d81167ca6d29eb6783 (diff) | |
download | pfsense-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/generateguicert | 8 |
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 |