what does an ssl certificate do code example

Example 1: what is SSL

SSL, short for Secure Sockets Layer, is 
commonly used on e-commerce sites and pages that 
require users to submit personal or credit card information.
ensurs that all data passed between the two parties remains private and secure
prevents hackers from stealing private information 
such as credit card numbers, bank information, names, and addresses

Example 2: what is an SSL certificate

An SSL certificate is a type of digital certificate that 
provides authentication for a website and enables an encrypted connection. 
communicates to the client that the web service host 
demonstrated ownership of the domain to the certificate authority 
at the time of certificate issuance