Hello, currently openbsd's acme-client breaks RFC 8555 section 6.1, in particular sentence
> ACME clients MUST send a User-Agent header field, in accordance with
> [RFC7231].
Following patch corrects that:
--- a/http.c
+++ b/http.c
@@ -344,18 +344,21 @@ http_open(const struct http *http, int h
c = asprintf(&req,
"HEAD %s HTTP/1.0\r\n"
"Host: %s\r\n"
+ "User-Agent: openbsd-acme-client\r\n"
"\r\n",
http->path, http->host);
else
c = asprintf(&req,
"GET %s HTTP/1.0\r\n"
"Host: %s\r\n"
+ "User-Agent: openbsd-acme-client\r\n"
"\r\n",
http->path, http->host);
} else {
c = asprintf(&req,
"POST %s HTTP/1.0\r\n"
"Host: %s\r\n"
+ "User-Agent: openbsd-acme-client\r\n"
"Content-Length: %zu\r\n"
"Content-Type: application/jose+json\r\n"
"\r\n",
Have a nice day,
W.
--
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.
signature.asc
Description: PGP signature
