Requirement, DC-DC converter, 23-42V to 12V, DIN rail mounting

As I mentioned previously here - DC-DC CONVERTER, DIN rail mounted, details in body of the message - the EP75-4812WI-CMF in combination with the TEP-MK1 DIN rail mounting kit would likely fit all of your requirements, including the full input voltage range.