So long story short I almost landed at the wrong airport. I was heading for an uncontrolled airport right next to a controlled airport with similar runway headings. The uncontrolled airport was sandwiched between two hills and I couldn’t see it from my lower altitude. Stupid, rookie mistake that I shouldn’t have made. Anyway I was on flight following, talking to the approach frequency. They cleared me through the controlled airport’s delta airspace and instructed me to report the uncontrolled airport in sight. Seeing the controlled airport, I reported the uncontrolled airport in sight. Approach switched me to the uncontrolled airports CTAF and I planned on joining the pattern upwind by overflying the field and checking the windsock, then turning left crosswind and joining the pattern. I descended down to about 1,000 agl on a slightly long final before I realized I was on final for the wrong airport. This whole time I was announcing my position on the uncontrolled airports CTAF. After realizing my mistake, I promptly throttled up, climbed, cleared the approach path of this airport, contacted approach, and requested vectors to the uncontrolled airport. Luckily, no one was taking off, landing, or in the pattern at the controlled airport.
Since I was cleared through the delta, I can’t think of any specific regulation I violated. However, I doubt I’m getting off Scot free for being on final approach to a major controlled airport with no entry instructions and not talking to their tower. What kind of action is likely against my certificate?