mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 06:03:28 +00:00
Check that key and cert file paths are valid
This commit is contained in:
@@ -13,6 +13,8 @@ $conf = &get_config();
|
||||
if ($in{'dest_def'}) {
|
||||
$keyfile = &find_value("TLSCertificateKeyFile", $conf);
|
||||
$certfile = &find_value("TLSCertificateFile", $conf);
|
||||
$keyfile =~ /^\// || &error($text{'gencert_epath'});
|
||||
$certfile =~ /^\// || &error($text{'gencert_epath'});
|
||||
}
|
||||
else {
|
||||
# In some dir
|
||||
|
||||
@@ -262,6 +262,7 @@ gencert_same=Current config files
|
||||
gencert_dir=Directory
|
||||
gencert_err=Failed to generate certificate
|
||||
gencert_edest=Destination directory does not exist
|
||||
gencert_epath=Certificate and key files in the LDAP server config must be absolute paths
|
||||
|
||||
perms_err=Failed to fix file ownership
|
||||
|
||||
|
||||
Reference in New Issue
Block a user