This question already has an answer here:

Is it possible to make a fake AP with the same SSID that has a password and when clients try to access it and type a password, the software verifies it with a handshake?

marked as duplicate by Steffen Ullrich, schroeder Feb 18 at 8:35

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.