Skip to content

Commit 3759641

Browse files
committed
Merge /httpd/httpd/trunk:r1923148
*) mod_md: update to version 2.4.31 - Improved error reporting when waiting for ACME server to verify domains or finalizing the order fails, e.g. times out. - Increasing the timeouts to wait for ACME server to verify domain names and issue the certificate from 30 seconds to 5 minutes. - Change a log level from error to debug when Stapling is enabled but a certificate carries no OCSP responder URL. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1923150 13f79535-47bb-0310-9956-ffa450edef68
1 parent 125cfe9 commit 3759641

File tree

4 files changed

+23
-7
lines changed

4 files changed

+23
-7
lines changed

changes-entries/md_v2.4.31.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
*) mod_md: update to version 2.4.31
2+
- Improved error reporting when waiting for ACME server to verify domains
3+
or finalizing the order fails, e.g. times out.
4+
- Increasing the timeouts to wait for ACME server to verify domain names
5+
and issue the certificate from 30 seconds to 5 minutes.
6+
- Change a log level from error to debug when Stapling is enabled but a
7+
certificate carries no OCSP responder URL.

modules/md/md_acme_drive.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -515,8 +515,8 @@ static apr_status_t acme_driver_preload_init(md_proto_driver_t *d, md_result_t *
515515
d->baton = ad;
516516

517517
ad->driver = d;
518-
ad->authz_monitor_timeout = apr_time_from_sec(30);
519-
ad->cert_poll_timeout = apr_time_from_sec(30);
518+
ad->authz_monitor_timeout = apr_time_from_sec(300);
519+
ad->cert_poll_timeout = apr_time_from_sec(300);
520520
ad->ca_challenges = apr_array_make(d->p, 3, sizeof(const char*));
521521

522522
/* We want to obtain credentials (key+certificate) for every key spec in this MD */

modules/md/md_acmev2_drive.c

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,17 @@ apr_status_t md_acmev2_drive_renew(md_acme_driver_t *ad, md_proto_driver_t *d, m
152152

153153
rv = md_acme_order_monitor_authzs(ad->order, ad->acme, d->md,
154154
ad->authz_monitor_timeout, result, d->p);
155-
if (APR_SUCCESS != rv) goto leave;
155+
if (APR_SUCCESS != rv) {
156+
md_result_set(result, rv, "Error waiting on domain names to be validated");
157+
goto leave;
158+
}
156159

157160
rv = md_acme_order_await_ready(ad->order, ad->acme, d->md,
158161
ad->authz_monitor_timeout, result, d->p);
159-
if (APR_SUCCESS != rv) goto leave;
162+
if (APR_SUCCESS != rv) {
163+
md_result_set(result, rv, "Error waiting for order to become ready");
164+
goto leave;
165+
}
160166

161167
if (MD_ACME_ORDER_ST_READY == ad->order->status) {
162168
rv = md_acme_drive_setup_cred_chain(d, result);
@@ -166,7 +172,10 @@ apr_status_t md_acmev2_drive_renew(md_acme_driver_t *ad, md_proto_driver_t *d, m
166172

167173
rv = md_acme_order_await_valid(ad->order, ad->acme, d->md,
168174
ad->authz_monitor_timeout, result, d->p);
169-
if (APR_SUCCESS != rv) goto leave;
175+
if (APR_SUCCESS != rv) {
176+
md_result_set(result, rv, "Error waiting for order to become valid.");
177+
goto leave;
178+
}
170179

171180
if (!ad->order->certificate) {
172181
md_result_set(result, APR_EINVAL, "Order valid, but certificate url is missing.");

modules/md/md_version.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@
2727
* @macro
2828
* Version number of the md module as c string
2929
*/
30-
#define MOD_MD_VERSION "2.4.30"
30+
#define MOD_MD_VERSION "2.4.31"
3131

3232
/**
3333
* @macro
3434
* Numerical representation of the version number of the md module
3535
* release. This is a 24 bit number with 8 bits for major number, 8 bits
3636
* for minor and 8 bits for patch. Version 1.2.3 becomes 0x010203.
3737
*/
38-
#define MOD_MD_VERSION_NUM 0x02041e
38+
#define MOD_MD_VERSION_NUM 0x02041f
3939

4040
#define MD_ACME_DEF_URL "https://acme-v02.api.letsencrypt.org/directory"
4141
#define MD_TAILSCALE_DEF_URL "file://localhost/var/run/tailscale/tailscaled.sock"

0 commit comments

Comments
 (0)