curves <string>
When using the ECDSA keytype, configure the curves. The default is P-384.
+directory <string>
+ This keyword configures the directory URL for the CA used by this acme
+ section. This keyword is mandatory as there is no default URL.
+
+ Example:
+ directory https://acme-staging-v02.api.letsencrypt.org/directory
+
keytype <string>
Configure the type of key that will be generated. Value can be either "RSA"
or "ECDSA". You can also configure the "curves" for ECDSA and the number of
"bits" for RSA. By default EC384 keys are generated.
-uri <string>
- This keyword configures the directory URL for the CA used by this acme
- section. This keyword is mandatory as there is no default uri.
-
- Example:
- uri https://acme-staging-v02.api.letsencrypt.org/directory
Example:
ssl-f-use crt "foo.example.com.pem.ecdsa" acme LE2 domains "foo.example.com.pem,bar.example.com"
acme LE1
- uri https://acme-staging-v02.api.letsencrypt.org/directory
+ directory https://acme-staging-v02.api.letsencrypt.org/directory
account /etc/haproxy/account.key
contact john.doe@example.com
challenge HTTP-01
bits 2048
acme LE2
- uri https://acme-staging-v02.api.letsencrypt.org/directory
+ directory https://acme-staging-v02.api.letsencrypt.org/directory
account /etc/haproxy/account.key
contact john.doe@example.com
challenge HTTP-01
int err_code = 0;
char *errmsg = NULL;
- if (strcmp(args[0], "uri") == 0) {
+ if (strcmp(args[0], "directory") == 0) {
if (!*args[1]) {
ha_alert("parsing [%s:%d]: keyword '%s' in '%s' section requires an argument\n", file, linenum, args[0], cursection);
err_code |= ERR_ALERT | ERR_FATAL;
}
if (alertif_too_many_args(1, file, linenum, args, &err_code))
goto out;
- cur_acme->uri = strdup(args[1]);
- if (!cur_acme->uri) {
+ cur_acme->directory = strdup(args[1]);
+ if (!cur_acme->directory) {
err_code |= ERR_ALERT | ERR_FATAL;
ha_alert("parsing [%s:%d]: out of memory.\n", file, linenum);
goto out;
next = acme_cfgs->next;
ha_free(&acme_cfgs->name);
- ha_free(&acme_cfgs->uri);
+ ha_free(&acme_cfgs->directory);
ha_free(&acme_cfgs->account.contact);
ha_free(&acme_cfgs->account.file);
ha_free(&acme_cfgs->account.thumbprint);
}
static struct cfg_kw_list cfg_kws_acme = {ILH, {
- { CFG_ACME, "uri", cfg_parse_acme_kws },
+ { CFG_ACME, "directory", cfg_parse_acme_kws },
{ CFG_ACME, "contact", cfg_parse_acme_kws },
{ CFG_ACME, "account", cfg_parse_acme_kws },
{ CFG_ACME, "challenge", cfg_parse_acme_kws },
switch (st) {
case ACME_RESSOURCES:
if (http_st == ACME_HTTP_REQ) {
- if (acme_http_req(task, ctx, ist(ctx->cfg->uri), HTTP_METH_GET, NULL, IST_NULL) != 0)
+ if (acme_http_req(task, ctx, ist(ctx->cfg->directory), HTTP_METH_GET, NULL, IST_NULL) != 0)
goto retry;
}