Chrome-remote-interface: Is it possible to ignore self signed certificates?

Created on 5 Jul 2017  路  8Comments  路  Source: cyrus-and/chrome-remote-interface

Hi,

great job on this repository. I'm making screenshots of an intranet system that is using self signed ssl certificate. I'm using your library with Chrome Stable headless mode on Ubuntu 16.04 server.

I can see that Chromium team added a way to ignore certificate errors https://bugs.chromium.org/p/chromium/issues/detail?id=659662
but I'm not familiar with the tooling enough to figure this out (how to use it with CRI).

Any help would be greatly appreciated. Thank you.

question

All 8 comments

Hey thanks! :)

Have you tried this wiki recipe?

Regarding this recipe (bypass certificates errors), is this supposed to work out of the box with Chrome 59 ? In CDPV documentation, the stable version (1.2) has no Security domain.

@jdat82 yes it should, the stable version of the CDP doesn't correspond to the stable version of Chrome, it just means that things there won't change in the future.

Sorry, I'm not following. It is my understanding that CDP 1.2 is the default when using CRI. Am I right?

According to this documentation, there is no security domain.

@jdat82 nope, see the README:

chrome-remote-interface uses the local version of the protocol descriptor by default. This file is manually updated from time to time using scripts/update-protocol.sh and pushed to this repository.

The stable version (1.2) of the protocol is too limited to be used by default, using the latest (tip-of-tree) is safe enough.

OK, I understand now. Thanks.

Thank you, it worked! Where can I send the beer? :)

I was getting blank screenshot from my internal test site with bad certificates. The wiki recipe works for me!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

FergusNelson picture FergusNelson  路  7Comments

westy92 picture westy92  路  7Comments

Bnaya picture Bnaya  路  4Comments

sergueyarellano picture sergueyarellano  路  6Comments

elsigh picture elsigh  路  3Comments