SSL protocol works on both keys public key and private key. Public key is accessible to all and used to encrypt the data but the private key is confidential to certificate owner. It is used to decrypt the message.
From below resources, you can learn more about these both SSL keys :