Hello Ameen
Certificates are a widely used method for authentication in a very broad area of application. Some examples include:
A certificate, or digital certificate, or more correctly referred to as a public key certificate, is a method used to prove the ownership of a public key. A digital certificate includes information about the key, information about the identity of its owner, as well as the digital signature of the entity that has verified the certificate’s contents. This entity is known as the issuer. If the signature is valid, and the software examining the certificate trusts the issuer, then it can use that key to communicate securely with the certificate’s owner.
In this case, the wireless host examines the digital certificate of the AP, and if the signature is valid, it has been proven that the AP is indeed legitimate.
Now it is possible to issue your own certificate. This can be done as shown in the lessons I have linked above. However, the most secure way to validate digital certificates is to use a Certificate Authority (CA) as the issuer. This is an entity that issues digital certificates. The CA acts as a trusted 3rd party that is trusted by both the host and the AP.
Some examples of CAs include Amazon Web Services, Cloudflare, Google Cloud Platform, and others.
So to answer your questions directly, it is not possible for an attacker to make a “fake” certificate, especially if you use a 3rd party as the CA. The certificates can be made by you, or by the manufacturer of the AP, but such certificates can be compromised if the CA is not secure (i.e. an employee from the manufacturer leaked the certificate, or the certificate you created was somehow compromised). It is best to purchase such a service from a publicly trusted CA.
For more examples of how certificates are used, take a look at these NetworkLessons Notes:
https://notes.networklessons.com/why-do-we-trust-a-website-certificate
https://notes.networklessons.com/certificate-authority-structure
I hope this has been helpful!
Laz