mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 14:13:29 +00:00
Do fail hard if the default SSL cert can't be loaded
This commit is contained in:
@@ -278,9 +278,11 @@ if ($use_ssl) {
|
||||
$Net::SSLeay::ssl_version = $config{'ssl_version'};
|
||||
}
|
||||
$client_certs = 0 if (!-r $config{'ca'} || !%certs);
|
||||
$ssl_contexts{"*"} = &create_ssl_context($config{'keyfile'},
|
||||
$config{'certfile'},
|
||||
$config{'extracas'});
|
||||
$ctx = &create_ssl_context($config{'keyfile'},
|
||||
$config{'certfile'},
|
||||
$config{'extracas'});
|
||||
$ctx || die "Failed to create default SSL context";
|
||||
$ssl_contexts{"*"} = $ctx;
|
||||
foreach $ipkey (@ipkeys) {
|
||||
$ctx = &create_ssl_context($ipkey->{'key'}, $ipkey->{'cert'},
|
||||
$ipkey->{'extracas'} || $config{'extracas'});
|
||||
|
||||
Reference in New Issue
Block a user