question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

net::ERR_SSL_CLIENT_AUTH_CERT_NEEDED

See original GitHub issue
Component Version
Operating system Ubuntu 16.04 / Centos7
Node.js 8.x
Chrome/Chromium/… Chrome-stable v60 (Headless)
chrome-remote-interface Included with Chrome-har-capturer

Is Chrome running in a container? NO

Some sites trigger this exception, causing the rest of the code to fail. Note that this error does not trigger on https://google.com. I can not provide the URL that it triggers on as it’s that of a customer. Their website does load through standard headed Chrome & firefox without any SSL exceptions.

Tried to intercept the request with Network.setRequestInterceptionEnabled, but the error triggers before it can intercept it.

Stack Trace

Error: net::ERR_SSL_CLIENT_AUTH_CERT_NEEDED
    at Chrome.Network.loadingFailed (/home/mustek/WebstormProjects/chrome-speed/node_modules/chrome-har-capturer/lib/page.js:217:24)
    at emitOne (events.js:120:20)
    at Chrome.emit (events.js:210:7)
    at Chrome.handleMessage (/home/mustek/WebstormProjects/chrome-speed/node_modules/chrome-remote-interface/lib/chrome.js:303:16)
    at WebSocket.<anonymous> (/home/mustek/WebstormProjects/chrome-speed/node_modules/chrome-remote-interface/lib/chrome.js:266:27)
    at emitTwo (events.js:125:13)
    at WebSocket.emit (events.js:213:7)
    at Receiver._receiver.onmessage (/home/mustek/WebstormProjects/chrome-speed/node_modules/ws/lib/WebSocket.js:143:54)
    at Receiver.dataMessage (/home/mustek/WebstormProjects/chrome-speed/node_modules/ws/lib/Receiver.js:385:14)
    at extension.decompress (/home/mustek/WebstormProjects/chrome-speed/node_modules/ws/lib/Receiver.js:354:40)

Request returned by event Network.LoadingFailed

{ requestId: '18520.1',
  timestamp: 100208.766945,
  type: 'Document',
  errorText: 'net::ERR_SSL_CLIENT_AUTH_CERT_NEEDED',
  canceled: false }

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Mustekcommented, Aug 10, 2017

Opened issue over at Chromium, found some similar related ones, but none that describe this issue.

Link is https://bugs.chromium.org/p/chromium/issues/detail?id=754210

0reactions
cyrus-andcommented, Aug 10, 2017

As a side note, hooks should return a promise, in particular I suggest to change your preHook to something like this to be sure that the override is set before continuing with the page load:

async function (url, client) {
    // User Agent
    await client.Network.enable();
    await client.Network.setUserAgentOverride({userAgent: 'StatusCake_Pagespeed_Indev'});

    client.Network.loadingFailed((data) => {
        console.log(data);
    });

    await client.Security.enable();
    await client.Security.setOverrideCertificateErrors({override: true});

    // Security Override
    client.Security.certificateError(({eventId}) => {
        client.Security.handleCertificateError({eventId, action: 'continue'});
    });
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix ERR BAD SSL CLIENT AUTH CERT Error in ...
Method 1: Disable SSL / TLS Protocol Filtering in Third Party Antivirus Software Settings · Method 2: Make Sure Windows Date and Time...
Read more >
ERR_BAD_SSL_CLIENT_AUTH...
How to Fix ERR_BAD_SSL_CLIENT_AUTH_CERT Error Chrome · 1. Update Your Google Chrome Browser · 2. Synchronize Your Computer's Date and Time · 3....
Read more >
How to Fix ERR_BAD_SSL_CLIENT_AUTH_CERT ... - ClickSSL
This error is related to SSL certificates. When any user tries to access a website on the internet, Google Chrome tries to check...
Read more >
How to Fix ERR_BAD_SSL_CLIENT_AUTH_CERT for Google ...
This SSL certificate error mainly occurs when Chrome checks the SSL certificate on the website the user is trying to access. Chrome's security ......
Read more >
Fix ERR BAD SSL CLIENT AUTH CERT error for Google ...
Google Chrome web browser checks the SSL Security Certificate of the web page that the user is trying to access. If it is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found