EXHIBIT 23.5

Consent of Independent Auditors

We consent to the reference to our firm under the caption “Experts” in the Registration Statement (Form S-3) and related Prospectus of Hannon Armstrong Sustainable Infrastructure Capital, Inc. for the registration of its common stock and to the incorporation by reference therein 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

January 6, 2023