}
else if (s && !strcmp(s, "valid")) {
authz->state = MD_ACME_AUTHZ_S_VALID;
+ if (md_log_is_level(p, MD_LOG_DEBUG)) {
+ md_log_perror(MD_LOG_MARK, MD_LOG_DEBUG, 0, p, "ACME server validated challenge "
+ "for %s in %s, ACME response is: %s",
+ authz->domain, authz->location,
+ md_json_writep(json, p, MD_JSON_FMT_COMPACT));
+ }
}
else if (s && !strcmp(s, "invalid")) {
authz->state = MD_ACME_AUTHZ_S_INVALID;
+ md_log_perror(MD_LOG_MARK, MD_LOG_ERR, 0, p, "ACME server reports challenge "
+ "for %s in %s as 'invalid', ACME response is: %s",
+ authz->domain, authz->location,
+ md_json_writep(json, p, MD_JSON_FMT_COMPACT));
}
else if (s) {
- md_log_perror(MD_LOG_MARK, MD_LOG_WARNING, 0, p, "unknown authz state '%s' "
- "for %s in %s", s, authz->domain, authz->location);
+ md_log_perror(MD_LOG_MARK, MD_LOG_ERR, 0, p, "ACME server reports unrecognized "
+ "authz state '%s' for %s in %s, ACME response is: %s",
+ s, authz->domain, authz->location,
+ md_json_writep(json, p, MD_JSON_FMT_COMPACT));
return APR_EINVAL;
}
return rv;
* @macro
* Version number of the md module as c string
*/
-#define MOD_MD_VERSION "1.1.2"
+#define MOD_MD_VERSION "1.1.4"
/**
* @macro
* release. This is a 24 bit number with 8 bits for major number, 8 bits
* for minor and 8 bits for patch. Version 1.2.3 becomes 0x010203.
*/
-#define MOD_MD_VERSION_NUM 0x010102
+#define MOD_MD_VERSION_NUM 0x010104
#define MD_ACME_DEF_URL "https://acme-v01.api.letsencrypt.org/directory"
* If mode is "manual", a generated certificate will not match
* all necessary names. */
if ((!mc->local_80 || !uses_port_only(s, mc->local_80))
- && APR_SUCCESS != (rv = md_covers_server(md, s, ptemp))) {
+ && APR_SUCCESS != (rv = md_covers_server(md, s, p))) {
return rv;
}