mod_s2s_auth_dane/mod_s2s_auth_dane.lua
changeset 1507 6ea13869753f
parent 1506 a40f9b8661d8
child 1593 3e4d15ae2133
child 1630 aed20f9e78c8
equal deleted inserted replaced
1506:a40f9b8661d8 1507:6ea13869753f
   240 			-- No TLSA matched or response was bogus
   240 			-- No TLSA matched or response was bogus
   241 			local why = "No TLSA matched certificate";
   241 			local why = "No TLSA matched certificate";
   242 			if dane.bogus then
   242 			if dane.bogus then
   243 				why = "Bogus: "..tostring(dane.bogus);
   243 				why = "Bogus: "..tostring(dane.bogus);
   244 			end
   244 			end
   245 			log("warn", "DANE validation failed: %s", why);
   245 			log("warn", "DANE validation failed for %s: %s", host, why);
   246 			session.cert_identity_status = "invalid";
   246 			session.cert_identity_status = "invalid";
   247 			session.cert_chain_status = "invalid";
   247 			session.cert_chain_status = "invalid";
   248 		end
   248 		end
   249 	else
   249 	else
   250 		if session.cert_chain_status == "valid" and session.cert_identity_status ~= "valid"
   250 		if session.cert_chain_status == "valid" and session.cert_identity_status ~= "valid"