diff options
Diffstat (limited to 'src/etc')
-rw-r--r-- | src/etc/inc/system.inc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/etc/inc/system.inc b/src/etc/inc/system.inc index 992e647..1f900d8 100644 --- a/src/etc/inc/system.inc +++ b/src/etc/inc/system.inc @@ -1322,7 +1322,12 @@ EOD; return 1; } chmod("{$g['varetc_path']}/{$cert_location}", 0600); - fwrite($fd, $cert); + if ($ca <> "") { + $cert_chain = $cert . "\n" . $ca; + } else { + $cert_chain = $cert; + } + fwrite($fd, $cert_chain); fclose($fd); $fd = fopen("{$g['varetc_path']}/{$key_location}", "w"); if (!$fd) { |