-
Notifications
You must be signed in to change notification settings - Fork 9.1k
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
Certificates error using puppeteer #2377
Comments
Have the same issue, with **************, anyone know how to fix it? |
You can also set an args array inside the launch config
I have noticed that this only seems to work when headless if false. |
|
Having the same issue, tried using Canary, Chromium, and chrome. https://www.bhphotovideo.com trying to do the checkout process. Issue appears to be that when puppeteer opens the page, and trying to checkout, "The SSL certificate used to load resources from https://ds-aksb-a.akamaihd.net will be distrusted in M70. Once distrusted, users will be prevented from loading these resources. See https://g.co/chrome/symantecpkicerts for more information." |
Anyone seen a workaround for this? We've been banging our heads around this issue for a long while... |
yes chrome is missing the latest Thawte certificate (ThawteRSACA2018.crt) in his list of authorities it's why he refuse to get into some website. Copy the missing cert file in a dir (for me it's |
certutil -d sql:. -A -t "C,," -n ThawteRSACA2018 -i /home/ThawteRSACA2018.crt |
Temporary hack/workaround is to use xvfb while headless: True xvfb-run --server-args='-screen 0, 1024x768x16' /usr/bin/timeout 30 /usr/bin/node script.js |
|
@codeinvain Which version of puppeteer? |
@dpanic puppeteer 1.7.0 |
It appears that sites with incomplete certificate chains don't work in headless mode. Which is problematic, as plenty of sites have this issue (and work fine in most browsers). https://incomplete-chain.badssl.com/ can be used to check this. With Puppeteer 1.7.0, the following:
...results in With With |
@andersju running the code above (with or without |
@codeinvain Thanks! Yeah, seems like it might be an issue with headless Chromium on Linux (I'm on Ubuntu 18.04, Node 8.11.4) rather than Puppeteer, here's someone with the same issue: https://groups.google.com/a/chromium.org/forum/#!msg/headless-dev/CbVEqMc7Rlk/nElqclg1DgAJ |
@andersju I agree. But It is more convenient to track bug on Github than on Google Groups :) |
I'm the person who started the Google Groups thread (as I was still trying to identify if it was a problem with our setup - I also tried posting in the Puppeteer and headless-chrome Slack channels, but no responses from there either). On Ubuntu 14.04.5 LTS (Trust Tahr) using Google Chrome 68.0.3440.106 :
Running on Macos 10.13.6 (High Sierra) using Google Chrome 68.0.3440.106: It's definitely an OS dependent issue from my point of view and isn't a Puppeteer issue directly. [added] |
I've raised this as an issue on https://bugs.chromium.org/p/chromium/issues/detail?id=877075 : any confirmation/example cases - feel free to add. |
Anyone have any workarounds? This has been killing me for months. |
@bluepeter it looks like the fix has been made in Chromium, but I'd imagine it'll take several months to bubble through to non-development Chrome. |
This roll includes: - https://crrev.com/593256 - Support fetching missing intermediate certificates in headless - https://crrev.com/594161 - DevTools: allow addScriptToEvaluateOnNewDocument accept optional worldName parameter. References puppeteer#2671. Fixes puppeteer#2377.
This roll includes: - https://crrev.com/593256 - Support fetching missing intermediate certificates in headless - https://crrev.com/594161 - DevTools: allow addScriptToEvaluateOnNewDocument accept optional worldName parameter. References #2671. Fixes #2377.
Error: net::ERR_SSL_VERSION_OR_CIPHER_MISMATCH at https://www.xxxxxxsolutions.com/ |
await puppeteer.launch({ignoreHTTPSErrors: true}); |
This worked for me I initialised the browser as
|
For me its not working |
This technically worked for me but it fails the jest test says:
The code I'm using:
|
cool, that works for me. By the way, how do you get to know the argument --ignore-certificate-errors? I didn't find it in pyppeteer documentation. |
?? |
Hello,
I encountered a weird ssl problem using puppeeter 1.2.0 or 1.3.0 (inside a container).
Looking at this example (works on https://try-puppeteer.appspot.com/)
The problem is that I get the following error
Instead of to be allowed to navigate on the target url.
But if I try this in my browser everything is fine. The website has a valid ssl certificate.
On my local environment I get the following message using dumpio :
And this seems not to be the only website wich is affected by this problem.
Any clue ?
The text was updated successfully, but these errors were encountered: