How to handle SSL certificate error in Chrome

How to handle SSL certificate error in Chrome

In order to handle SSL certificate error in chrome, we can use a simple trick and we can easily get rid of the warning for the given domain.

Sometimes while working on automation of an application, we face SSL error and it becomes hard to handle it at run time. Now you have multiple options to resolve it. e.g.

– ignore ssl option in your automation script or trying to play with flags which are available under chrome://flags but sometimes none of it seems to work.

We can get these kind of ssl certificates while working on test automation which makes it an extra task of handling these errors.

NET::ERR_CERT_AUTHORITY_INVALID

NET::ERR_CERT_COMMON_NAME_INVALID

NET::ERR_CERT_DATE_INVALID

NET::ERR_CERT_REVOKED

NET::ERR_SSL_PINNED_KEY_NOT_IN_CERT_CHAIN

NET::ERR_CERT_DATE_INVALID

How to resolve SSL certificate issue on Chrome

There is a lesser known option that works like magic. Let’s see how to use that trick.

  1. Click a blank section of the error page (anywhere on the page like above image).
  2. Using your keyboard, type thisisunsafe.
  3. This will add the website to a safe list.
  4. The errors won’t appear again.

I know it is strange 🙂 but, it works like charm!

Related Posts