]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: acme: newOrder request retrieve authorizations URLs
authorWilliam Lallemand <wlallemand@haproxy.com>
Wed, 9 Apr 2025 21:16:28 +0000 (23:16 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Fri, 11 Apr 2025 23:29:27 +0000 (01:29 +0200)
commit4842c5ea8c950724963625303bd21ada45160e32
tree59949fa8b0a7d21493617dd2090e61430a8a0bd3
parent04d393f6610ead2845333037e9fd8d255b79a27a
MINOR: acme: newOrder request retrieve authorizations URLs

This patch implements the newOrder action in the ACME task, in order to
ask for a new certificate, a list of SAN is sent as a JWS payload.
the ACME server replies a list of Authorization URLs. One Authorization
is created per SAN on a Order.

The authorization URLs are stored in a linked list of 'struct acme_auth'
in acme_ctx, so we can get the challenge URLs from them later.

The location header is also store as it is the URL of the order object.

https://datatracker.ietf.org/doc/html/rfc8555#section-7.4
include/haproxy/acme-t.h
src/acme.c