mirror of
https://github.com/webmin/webmin.git
synced 2026-08-17 21:00:28 +01:00
Return more useful error if webserver is down
This commit is contained in:
@@ -496,6 +496,7 @@ sslcert_file=From file on server
|
||||
sslcert_eurl=Missing, invalid or non-SSL URL
|
||||
sslcert_efile=Missing or invalid certificate file
|
||||
sslcert_ecert=Could not get certificate
|
||||
sslcert_edown=Web server is down
|
||||
sslcert_days=Days before expiry to fail
|
||||
sslcert_when=When expired
|
||||
sslcert_mismatch=Also detect hostname mismatch?
|
||||
|
||||
@@ -17,7 +17,8 @@ if ($_[0]->{'url'}) {
|
||||
local $out = &backquote_with_timeout($cmd, 10);
|
||||
if ($?) {
|
||||
# Connection failed
|
||||
return { 'up' => -1 };
|
||||
return { 'up' => -1,
|
||||
'desc' => $text{'sslcert_edown'} };
|
||||
}
|
||||
|
||||
# Extract the cert part and save
|
||||
|
||||
Reference in New Issue
Block a user