summaryrefslogtreecommitdiff
path: root/methods/connect.cc
diff options
context:
space:
mode:
Diffstat (limited to 'methods/connect.cc')
-rw-r--r--methods/connect.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/methods/connect.cc b/methods/connect.cc
index ae70e48ec..63787226d 100644
--- a/methods/connect.cc
+++ b/methods/connect.cc
@@ -659,7 +659,10 @@ bool UnwrapTLS(std::string Host, std::unique_ptr<MethodFd> &Fd,
// Credential setup
if ((err = gnutls_certificate_set_x509_system_trust(tlsFd->credentials)) <= 0)
- return _error->Error("Could not load TLS certificates: %s", gnutls_strerror(err));
+ return _error->Error("Could not load TLS certificates: %s",
+ err == 0
+ ? "No certificates available. Try installing ca-certificates."
+ : gnutls_strerror(err));
std::string fileinfo = Owner->ConfigFind("CaInfo", "");
if (!fileinfo.empty())