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.

Allow to ignore certificate errors during navigation

See original GitHub issue

There should be a capability to ignore certificate errors during navigation. See https://github.com/GoogleChrome/puppeteer/issues/66 for proposal and https://github.com/cyrus-and/chrome-remote-interface/issues/183 for original discussion.

For example, we can add ignoreSSL navigation option:

page.navigate('https://example.com', { ignoreSSL: true })

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

37reactions
Garbeecommented, Jul 28, 2017

I’d urge it be more tedious to ignore per navigation since you really shouldn’t be ignoring problems like that. Even in a test suite, it’s not something to encourage.

27reactions
aslushnikovcommented, Aug 1, 2017

More details on this. The certificates behave a little surprising - once a certain certificate error was “ignored” via protocol’s Security.handleCertificateError, the certificate would not trigger any errors in future.

This would result in inability to do Page.setIgnoreHTTPSErrors(false), which causes the test failure in the #176.

Upstream bug: https://bugs.chromium.org/p/chromium/issues/detail?id=751204. We spent half a day with @allada debugging the issue but it didn’t get us anywhere.

To move on with this, since there’s no practical need to do setIgnoreHTTPSErrors(false), we can have a browser option to ignore HTTPS errors:

const {Browser} = require('puppeteer');
const browser = new Browser({ignoreHTTPSErrors: true});
...
Read more comments on GitHub >

github_iconTop Results From Across the Web

ignore-certificate-errors + headless puppeteer+google cloud
The --ignore-certificate-errors-spki-list actually accepts a whitelist of public key hashes ignore certificate-related errors.
Read more >
Certificate Error Navigation Blocked: What That Means and ...
How to Fix Certificate Error Navigation Blocked · Open the Internet Properties window. · Select the Advanced tab. · Look through the table...
Read more >
7 Ways to Fix Certificate Errors in Microsoft Edge [2022 Guide]
4. Disable certificate address mismatch warnings · Press Windows + S , search for Internet Options, and then open it.
Read more >
Auto ignore certificate errors and DON'T proceed in Fiddler
I know I can go into Tools --> Options --> HTTPS --> and check Ignore Server Certificate errors (unsafe) - but that is...
Read more >
How to Handle SSL Certificate in Selenium WebDriver - Guru99
For handling SSL error in Chrome, we need to use desired capabilities of Selenium Webdriver. The below code will help to accept all...
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