Read this article. Please note that this article provides an IIS-specific implementation technique. For other Web Servers, refer to appropriate vendor documentation.
Certificates enable a Web Server to tell a Web Browser that it is who it claims to be. It relies heavily on public key cryptography and the secure exchange of certificates.
Read this article, which discusses ways you can use SSL to authenticate your server.