mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Use /tmp/ssl.key Ticket #63
This commit is contained in:
parent
a63ab6b623
commit
a3e027f609
@ -652,7 +652,7 @@ function system_webgui_start() {
|
||||
$cert['refid'] = uniqid();
|
||||
$cert['name'] = "webConfigurator default";
|
||||
mwexec("/usr/bin/openssl genrsa 1024 > /tmp/ssl.key");
|
||||
mwexec("/usr/bin/openssl req -new -x509 -nodes -sha1 -days 2000 -key ssl.key > /tmp/ssl.crt");
|
||||
mwexec("/usr/bin/openssl req -new -x509 -nodes -sha1 -days 2000 -key /tmp/ssl.key > /tmp/ssl.crt");
|
||||
$crt = file_get_contents("/tmp/ssl.crt");
|
||||
$key = file_get_contents("/tmp/ssl.key");
|
||||
unlink("/tmp/ssl.key");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user