How to avoid the Synthetic Browser monitor Error Code 12049 "ERR_SSL_CLIENT_AUTH_CERT_NEEDED"

Self Service Summary

Some websites initially respond with an error that they need a client certificate, however, a second request to the page is successful. In these cases, Native Chrome intially sees the error “ERR_SSL_CLIENT_AUTH_CERT_NEEDED” but retries and is then able to successfully reach the site.

Dynatrace Synthetic Browser Monitors stop the execution as soon as the initial error “ERR_SSL_CLIENT_AUTH_CERT_NEEDED” is received.

Issue Solution Tasks Alternative(s)
Browser Monitor fails with ERR_SSL_CLIENT_AUTH_CERT_NEEDED Add script to retry Add script to retry Add client certificate

Steps to avoid Error Code 12049 “ERR_SSL_CLIENT_AUTH_CERT_NEEDED”

  1. Open the Browser Monitor for editing, using Classic Synthetic

  2. Click on Recorded Clickpath

  3. Add a JavaScript event, using Add synthetic event and move this step as first event

  4. Add the sample JavaScript code below and replace the url which is reporting “ERR_SSL_CLIENT_AUTH_CERT_NEEDED”

    var url ="https://when.navigate.to/this/page/there/is/a/ssl/client/error"; //Replace the url which reports ERR_SSL_CLIENT_AUTH_CERT_NEEDED error
    fetch(url, {
    	"referrerPolicy": "strict-origin-when-cross-origin",
    	"method": "GET",
    	"mode": "cors",
    	"credentials": "omit"
    });​
    
  5. The next event in the clickpath, should be a Navigate Event to the same url

What’s next?

It may be that you need to provide the client-side certificate. In this case, you can add it to the Dynatrace Synthetic Browser Monitor here

Otherwise, please open a chat or support ticket and provide a link to the Dynatrace Synthetic Browser Monitor, along with the troubleshooting steps you have already tried.

3 Likes

Thank you! :money_mouth_face: