]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: acme: more explicit error when BIO_new_file()
authorWilliam Lallemand <wlallemand@haproxy.com>
Thu, 13 Nov 2025 10:44:26 +0000 (11:44 +0100)
committerWilliam Lallemand <wlallemand@haproxy.com>
Thu, 13 Nov 2025 10:56:33 +0000 (11:56 +0100)
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.

src/acme.c

index 7f7a4c6494273bca2bc69e23e2d3abe8da347811..791178ba747c5eaa10e609a4c983c80d13a0e345 100644 (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;
                }