mod_s2s_auth_certs: Save chain validation errors for later use

This commit is contained in:
Kim Alvefur 2019-11-27 23:23:25 +01:00
parent 09cdcfc0a1
commit f864eaf14f

View file

@ -27,6 +27,7 @@ module:hook("s2s-check-certificate", function(event)
log("debug", "certificate error(s) at depth %d: %s", depth-1, table.concat(t, ", "))
end
session.cert_chain_status = "invalid";
session.cert_chain_errors = errors;
else
log("debug", "certificate chain validation result: valid");
session.cert_chain_status = "valid";