diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-07-10 18:01:17 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-07-10 18:01:17 +0000 |
commit | a4529ec07c9c87528662270557f511ce5cd25386 (patch) | |
tree | 707cffd13c8b18da3464475f8fcfe0cd510548b2 /usr/local/www/system_advanced_create_certs.php | |
parent | d424576bcb6b933f30137b85f50e3edc048b5784 (diff) | |
download | pfsense-a4529ec07c9c87528662270557f511ce5cd25386.zip pfsense-a4529ec07c9c87528662270557f511ce5cd25386.tar.gz |
Fix file not found errors.
Diffstat (limited to 'usr/local/www/system_advanced_create_certs.php')
-rwxr-xr-x | usr/local/www/system_advanced_create_certs.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr/local/www/system_advanced_create_certs.php b/usr/local/www/system_advanced_create_certs.php index 12c1707..1727fc3 100755 --- a/usr/local/www/system_advanced_create_certs.php +++ b/usr/local/www/system_advanced_create_certs.php @@ -31,9 +31,11 @@ require("guiconfig.inc"); -$fd = fopen("/var/etc/ssl/openssl.cnf", "r"); -$openssl = fread($fd,8096); -fclose($fd); +if(file_exists("/var/etc/ssl/openssl.cnf")) { + $fd = fopen("/var/etc/ssl/openssl.cnf", "r"); + $openssl = fread($fd,8096); + fclose($fd); +} /* Lets match the fileds in the read in file and populate the variables for the form */ |