Attached files

file filename
10-K - 10-K - ACNB CORPa2231301z10-k.htm
EX-32.2 - EX-32.2 - ACNB CORPa2231301zex-32_2.htm
EX-32.1 - EX-32.1 - ACNB CORPa2231301zex-32_1.htm
EX-31.2 - EX-31.2 - ACNB CORPa2231301zex-31_2.htm
EX-31.1 - EX-31.1 - ACNB CORPa2231301zex-31_1.htm
EX-21 - EX-21 - ACNB CORPa2231301zex-21.htm

QuickLinks -- Click here to rapidly navigate through this document


Exhibit 23

CONSENT OF INDEPENDENT REGISTERED PUBLIC ACCOUNTING FIRM

ACNB Corporation
Gettysburg, Pennsylvania

        We hereby consent to the incorporation by reference in the Registration Statements on Form S-3D (Registration No. 333-171840) filed with the SEC on January 24, 2011 and Form S-8 (Registration No. 333-185881) filed with the SEC on January 4, 2013 and Form S-4 (Registration Statement No. 333-215914) effective March 14, 2017 of ACNB Corporation of our reports dated March 15, 2017, relating to the consolidated financial statements and the effectiveness of ACNB Corporation's internal control over financial reporting, which appear in this Form 10-K.

/s/ BDO USA, LLP

Harrisburg, Pennsylvania
March 15, 2017




QuickLinks

CONSENT OF INDEPENDENT REGISTERED PUBLIC ACCOUNTING FIRM