BUG/MEDIUM: ssl: open the right path for multi-cert bundle
Multi-cert bundle was not working anymore because we tried to open the
wrong path.
diff --git a/src/ssl_sock.c b/src/ssl_sock.c
index f38a35f..98f677b 100644
--- a/src/ssl_sock.c
+++ b/src/ssl_sock.c
@@ -3182,7 +3182,7 @@
#endif
if (!found) {
- memprintf(err, "%sDidn't find any certificate.\n", err && *err ? *err : "");
+ memprintf(err, "%sDidn't find any certificate for bundle '%s'.\n", err && *err ? *err : "", path);
goto end;
}
/* insert into the ckchn tree */
@@ -3664,7 +3664,7 @@
return cfgerr;
}
- ckchn = ckchn_load_cert_file(fp, 1, err);
+ ckchn = ckchn_load_cert_file(path, 1, err);
if (!ckchn)
return 1;
cfgerr = ssl_sock_load_multi_ckchn(path, ckchn, bind_conf, NULL, NULL, 0, err);