ssl certificate means 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

Example 3: ssl certificate error

SSL is a standard security protocol for establishing secure connection between
the SERVER and CLIENT. When secure connection is not established due to
certificate SSL error will occur and to handle it We need to create 
instance of DesiredCapabilities class :


for UI of CHROME, IE -> 
        DesiredCapabilities handlSSLErr = DesiredCapabilities.chrome()
        handlSSLErr.setCapability ((CapabilityType.ACCEPT_SSL_CERTS, true)
        WebDriver driver = new ChromeDriver(handlSSLErr);