mirror of
https://github.com/haproxy/haproxy.git
synced 2026-03-01 21:01:26 -05:00
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.
This commit is contained in:
parent
a64c703374
commit
6e5f2ceead
1 changed files with 2 additions and 2 deletions
|
|
@ -3182,7 +3182,7 @@ static struct ckch_node *ckchn_load_cert_file(char *path, int multi, char **err)
|
|||
#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 @@ ignore_entry:
|
|||
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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue