How to handle SSL certificate error in Chrome

How to handle SSL certificate error in Chrome

    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 such as- ignore ssl option in your automation script, trying to play with flags which are available under chrome://flags but sometimes none of it seems to work.</p>       
                                    <img width="622" height="422" src="https://automationscript.com/wp-content/uploads/2020/11/BadsslError-1.jpg" alt="" loading="lazy" srcset="https://automationscript.com/wp-content/uploads/2020/11/BadsslError-1.jpg 622w, https://automationscript.com/wp-content/uploads/2020/11/BadsslError-1-300x204.jpg 300w" sizes="(max-width: 622px) 100vw, 622px" />                                          
        <h6>SSL Error Types on Chrome</h6>      
                                    <img width="592" height="358" src="https://automationscript.com/wp-content/uploads/2020/11/BadsslErrors.jpg" alt="" loading="lazy" srcset="https://automationscript.com/wp-content/uploads/2020/11/BadsslErrors.jpg 592w, https://automationscript.com/wp-content/uploads/2020/11/BadsslErrors-300x181.jpg 300w" sizes="(max-width: 592px) 100vw, 592px" />                                         
    <p>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

handle ssl certificate error in chrome

There is a lesser known option which seems to work most of the time when you get such error.

  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, where you should not be prompted again.

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

[hfe_template id=’1966′]


Discover more from Automation Script

Subscribe to get the latest posts sent to your email.

Related Posts