Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to deal with "net::ERR_CERT_AUTHORITY_INVALID" with wrong certificate ? #1004

Closed
bi-kai opened this issue Sep 29, 2020 · 7 comments
Closed

Comments

@bi-kai
Copy link

bi-kai commented Sep 29, 2020

target page with wrong or without certificate, chrome show page "net::ERR_CERT_AUTHORITY_INVALID", how to ignore this?
I have used ignoreHTTPSErrors, like this:

browser = await puppeteer.connect({
          browserWSEndpoint: `ws://${gConfig.chromeInstance}`,
          ignoreHTTPSErrors: true
        })

but it's not work.

@bi-kai bi-kai changed the title does it support https? how to deal with "net::ERR_CERT_AUTHORITY_INVALID" with wrong certificate ? Sep 30, 2020
@bi-kai
Copy link
Author

bi-kai commented Oct 15, 2020

solved by adding -e "DEFAULT_IGNORE_HTTPS_ERRORS=true" to docker run param.

@bi-kai bi-kai closed this as completed Oct 15, 2020
@mik3fly
Copy link

mik3fly commented May 17, 2021

i have the issue even if i add ""DEFAULT_IGNORE_HTTPS_ERRORS=true" in my docker-compose file.

@StayPirate
Copy link

Same here, I do have DEFAULT_IGNORE_HTTPS_ERRORS=true set and I still get ERR_CERT_AUTHORITY_INVALID.

According to #2485 (comment) @AndyMathys mentioned that SSL Protocol Errors are not treated by Chromium via DEFAULT_IGNORE_HTTPS_ERRORS. But, for what I see ERR_CERT_AUTHORITY_INVALID should not be part of SSL Protocol Errors.

Any idea how to fix this?

@StayPirate
Copy link

This can be reproduced by pointing to https://untrusted-root.badssl.com

@StayPirate
Copy link

@bi-kai do you mind to re-open this issue?

@StayPirate
Copy link

FTR: I managed to fix it in changedetection by changing PLAYWRIGHT_DRIVER_URL from ws://172.16.10.8:3000/?stealth=1&--disable-web-security=true to ws://172.16.10.8:3000/?stealth=1&--disable-web-security=true&--ignore-certificate-errors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants