Skip to content

Commit

Permalink
system: generate self-signed server certificate for web GUI
Browse files Browse the repository at this point in the history
  • Loading branch information
fichtner committed Oct 31, 2019
1 parent 48e0c47 commit 296a7e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/etc/inc/plugins.inc.d/webgui.inc
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ function webgui_configure_do($verbose = false, $interface = '')
$cert['descr'] = 'Web GUI SSL certificate';
mwexec(
/* XXX ought to be replaced by PHP calls */
'/usr/local/bin/openssl req -new ' .
'/usr/local/bin/openssl req -new -extensions server_cert ' .
'-config /usr/local/etc/ssl/opnsense.cnf ' .
'-newkey rsa:4096 -sha256 -days 365 -nodes -x509 ' .
'-subj "/C=NL/ST=Zuid-Holland/L=Middelharnis/O=OPNsense" ' .
'-keyout /tmp/ssl.key -out /tmp/ssl.crt'
Expand Down

0 comments on commit 296a7e3

Please sign in to comment.