Exhibit 23.4
Consent of Independent Auditors
We consent to the incorporation by reference in the Registration Statement (Form S-8) pertaining to the 2022 Hannon Armstrong Sustainable Infrastructure Capital, Inc. Equity Incentive Plan of our report dated March 29, 2022, with respect to the consolidated financial statements of Rosie TargetCo LLC and subsidiaries, included in Hannon Armstrong Sustainable Infrastructure Capital, Inc.s Annual Report (Form 10-K/A) for the year ended December 31, 2021, filed with the Securities and Exchange Commission.
/s/ Ernst & Young LLP
Philadelphia, Pennsylvania
June 14, 2022