]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: acme/cli: fix certificate name in error message
authorWilliam Lallemand <wlallemand@haproxy.com>
Wed, 16 Apr 2025 15:06:52 +0000 (17:06 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Wed, 16 Apr 2025 15:06:52 +0000 (17:06 +0200)
The acme command had a new parameter so the certificate name is not
correct anymore because args[1] is not the certificate value anymore.

src/acme.c

index 86ffd5b784cb149a91eff1d54a43d6cdee3930bd..86199288c0468a27d9b82bbeffc3a4b87aa437f0 100644 (file)
@@ -1785,18 +1785,18 @@ static int cli_acme_renew_parse(char **args, char *payload, struct appctx *appct
                return cli_err(appctx, "Can't update: operations on certificates are currently locked!\n");
 
        if ((store = ckchs_lookup(args[2])) == NULL) {
-               memprintf(&err, "Can't find the certificate '%s'.\n", args[1]);
+               memprintf(&err, "Can't find the certificate '%s'.\n", args[2]);
                goto err;
        }
 
        if (store->conf.acme.id == NULL) {
-               memprintf(&err, "No ACME configuration defined for file '%s'.\n", args[1]);
+               memprintf(&err, "No ACME configuration defined for file '%s'.\n", args[2]);
                goto err;
        }
 
        cfg = get_acme_cfg(store->conf.acme.id);
        if (!cfg) {
-               memprintf(&err, "No ACME configuration found for file '%s'.\n", args[1]);
+               memprintf(&err, "No ACME configuration found for file '%s'.\n", args[2]);
                goto err;
        }