Exhibit 23.1


Consent of Independent Registered Public Accounting Firm

We consent to the incorporation by reference in the following Registration Statements:
(1) Registration Statement (Form S-3 No. 333-260733) of CorEnergy Infrastructure Trust, Inc.,
(2) Registration Statement (Form S-3 No. 333-259319) of CorEnergy Infrastructure Trust, Inc.,
(3) Registration Statement (Form S-8 No. 333-198799) pertaining to the CorEnergy Infrastructure Trust, Inc. Director Compensation Plan,
(4) Registration Statement (Form S-3 No. 333-228065) pertaining to the CorEnergy Infrastructure Trust, Inc. Dividend Reinvestment Plan, and
(5) Registration Statement (Form S-8 No. 333-265231) pertaining to the CorEnergy Infrastructure Trust, Inc. Omnibus Equity Incentive Plan,

of our report dated March 29, 2023, with respect to the consolidated financial statements of CorEnergy Infrastructure Trust, Inc. included in this Annual Report (Form 10-K) of CorEnergy Infrastructure Trust, Inc. for the year ended December 31, 2022.

/s/ Ernst & Young LLP
Kansas City, Missouri
March 29, 2023