chromeless
chromeless copied to clipboard
Allow interaction with sites having invalid SSL/TLS certificate
Using chromeless with sites having an invalid TLS cert (self-signed, etc.) is not possible as chrome/chromium refuses to load them, and there are currently no commandline flags to override this behavior.
This seems possible via CDP (security domain - see https://chromedevtools.github.io/devtools-protocol/tot/Security/). https://github.com/cyrus-and/chrome-remote-interface/wiki/Bypass-certificate-errors-(%22Your-connection-is-not-private%22) has an example
I would love to see this implemented as well.
Yeah, I could use it too. (right now, in fact 😞)
Old version CDP can be implement as the example as @r0p0s3c mentioned. The latest version of CDP has a new interface setIgnoreCertErrors
If ignore cert errors is set true in one of the two ways above, new tab in the same chrome instance will go with this configuraton even start chromeless with no ignore cert errors
I create a PR #464 and there is a test example here
Is there any plan to have this merged any time soon? We use chromeless heavily but need to be able to screenshot sites with invalid certificates.