Revision 0a8dd27b
Added by Renato Botelho over 10 years ago
etc/inc/system.inc | ||
---|---|---|
889 | 889 |
if ($config['system']['webgui']['protocol'] == "https") { |
890 | 890 |
// Ensure that we have a webConfigurator CERT |
891 | 891 |
$cert =& lookup_cert($config['system']['webgui']['ssl-certref']); |
892 |
if(!is_array($cert) || !$cert['crt'] || !$cert['prv']) {
|
|
892 |
if(!is_array($cert) || !$cert['crt'] || !$cert['prv']) |
|
893 | 893 |
$cert = system_webgui_create_certificate(); |
894 |
$crt = base64_decode($cert['crt']); |
|
895 |
$key = base64_decode($cert['prv']); |
|
896 |
} else { |
|
897 |
$crt = base64_decode($cert['crt']); |
|
898 |
$key = base64_decode($cert['prv']); |
|
899 |
} |
|
894 |
$crt = base64_decode($cert['crt']); |
|
895 |
$key = base64_decode($cert['prv']); |
|
900 | 896 |
|
901 | 897 |
if(!$config['system']['webgui']['port']) |
902 | 898 |
$portarg = "443"; |
Also available in: Unified diff
Remove redundancy as pointed out by phil-davis