BUG/MINOR: acme: more explicit error when BIO_new_file()

Replace the error message of BIO_new_file() when the account-key cannot
be created on disk by "acme: cannot create the file '%s'". It was
previously "acme: out of memory." Which is unclear.

Must be backported to 3.2.
This commit is contained in:
William Lallemand 2025-11-13 11:44:26 +01:00
parent 1b19e4ef32
commit 071e5063d8

View File

@ -712,7 +712,7 @@ static int cfg_postsection_acme()
}
if ((bio = BIO_new_file(store->path, "w+")) == NULL) {
ha_alert("acme: out of memory.\n");
ha_alert("acme: cannot create the file '%s', check your permissions.\n", cur_acme->account.file);
err_code |= ERR_ALERT | ERR_FATAL | ERR_ABORT;
goto out;
}