This image shows how trust is established between the server and the client.

  1. Server generates a certificate.

  2. Client imports the server certificate in its trusted store.

  3. At run time, the client gets the server certificate.

  4. Client checks for server certificate in its trusted store.