From a3e027f60995f327ec7a795fbc01423147eeaa51 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Wed, 23 Dec 2009 15:47:08 -0500 Subject: [PATCH] Use /tmp/ssl.key Ticket #63 --- etc/inc/system.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/inc/system.inc b/etc/inc/system.inc index 33a7dcd90b..f711a289a9 100644 --- a/etc/inc/system.inc +++ b/etc/inc/system.inc @@ -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");