Ignore SSL errors

9,141 views
Skip to first unread message

Francis Bouvier

unread,
Mar 16, 2017, 7:25:44 AM3/16/17
to headless-dev
Hi,

It looks like the flag --ignore-certificate-errors is not working with chrome headless.
Is there any way to ignore SSL errors (I'm trying to use an HTTPS proxy) ?

chromium 58.0.3029.19-1 with flags --headless --disable-gpu --ignore-certificate-errors --remote-debugging-address=0.0.0.0 --remote-debugging-port=9222

Eric Seckler

unread,
Mar 16, 2017, 7:34:39 AM3/16/17
to Francis Bouvier, headless-dev, ir...@chromium.og
While we don't plan to support --ignore-certificate-errors (it's likely being dropped from chromium entirely soon), it will be possible to handle and skip cert errors via DevTools, see crbug.com/659662. Pending patch by irisu@ here.

--
You received this message because you are subscribed to the Google Groups "headless-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to headless-dev...@chromium.org.
To post to this group, send email to headle...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/headless-dev/823c7d13-7dc5-43ca-9c09-8dace55d3009%40chromium.org.

tasos....@gmail.com

unread,
Apr 27, 2017, 10:53:46 AM4/27/17
to headless-dev, francis...@gmail.com, ir...@chromium.og
--allow-running-insecure-content seems to be ignored as well.

Headless chromium seemed like an excellent idea for all sorts of automated testing (security testing in my case, controlled via Selenium) now that PhantomJS is gone,
but the removal of these options make that goal near impossible.

Isn't there a better way to configure it without having to open up devtools?

Eric Seckler

unread,
Apr 27, 2017, 11:03:41 AM4/27/17
to tasos....@gmail.com, headless-dev, francis...@gmail.com
We should probably provide a way to configure this more easily via chromedriver / selenium. Feel free to comment on https://crbug.com/604324 or open a separate blocking bug.

massim...@gmail.com

unread,
May 5, 2017, 5:17:40 AM5/5/17
to headless-dev, tasos....@gmail.com, francis...@gmail.com
Do you know of any way to interact with handleCertificateError via selenium/chromedriver or do we have to manually send the command through a websocket?

Sami Kyostila

unread,
May 5, 2017, 1:03:48 PM5/5/17
to massim...@gmail.com, headless-dev, tasos....@gmail.com, francis...@gmail.com
I don't think ChromeDriver knows about that command yet since it was added fairly recently, and I'm also not sure if the DevTools websocket is available through Selenium (since it's already using DevTools for its own purposes). Please file a bug if you need this feature.

- Sami

--
You received this message because you are subscribed to the Google Groups "headless-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to headless-dev...@chromium.org.
To post to this group, send email to headle...@chromium.org.

Tasos Laskos

unread,
May 12, 2017, 8:20:11 AM5/12/17
to Sami Kyostila, massim...@gmail.com, headless-dev, francis...@gmail.com
I opened a bug:

https://bugs.chromium.org/p/chromium/issues/detail?id=721739

On 05/05/2017 08:03 PM, Sami Kyostila wrote:
> I don't think ChromeDriver knows about that command yet since it was added fairly recently, and I'm also not sure if the DevTools websocket is available through Selenium (since it's already using DevTools for its own purposes). Please file a bug if you need this feature.
>
> - Sami
>
> pe 5. toukok. 2017 klo 10.17 massim...@gmail.com <mailto:massim...@gmail.com> kirjoitti:
>
> Do you know of any way to interact with handleCertificateError <https://chromedevtools.github.io/debugger-protocol-viewer/tot/Security/#method-handleCertificateError> via selenium/chromedriver or do we have to manually send the command through a websocket?
>
>
> On Thursday, April 27, 2017 at 5:03:41 PM UTC+2, Eric Seckler wrote:
>
> We should probably provide a way to configure this more easily via chromedriver / selenium. Feel free to comment on https://crbug.com/604324 or open a separate blocking bug.
>
>
> --
> You received this message because you are subscribed to the Google Groups "headless-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to headless-dev...@chromium.org <mailto:headless-dev...@chromium.org>.
> To post to this group, send email to headle...@chromium.org <mailto:headle...@chromium.org>.
> To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/headless-dev/8480eb7a-cd8c-4c9f-88fe-52b2e20c9612%40chromium.org <https://groups.google.com/a/chromium.org/d/msgid/headless-dev/8480eb7a-cd8c-4c9f-88fe-52b2e20c9612%40chromium.org?utm_medium=email&utm_source=footer>.
>

geis...@gmail.com

unread,
Dec 4, 2017, 2:47:29 PM12/4/17
to headless-dev, skyo...@chromium.org, massim...@gmail.com, francis...@gmail.com, tasos....@gmail.com
After your suggestion failed I went and tired everyone that looked like it would help to no avail.

Thanks for the links to the issue.  I went and starred the issue to show support for fix.
Reply all
Reply to author
Forward
0 new messages