ssl certificate checker code example
Example 1: 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 2: 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);