An SSL certificate works by encrypting the data that is transferred between the server and the browser. A security key (public key) is then generated, which is used to encrypt the data. The server then uses the public key to decrypt the data so that it can be read by the browser.