elestio / ws-screenshot

A simple way to take a screenshot of a website by providing its URL. ws-screenshot include a simple web UI but also a REST API and a Websocket API to automate screenshots.
http://backup15.terasp.net/
MIT License
125 stars 39 forks source link

Add certificate authority to cert store of browser within docker image #21

Closed flikites closed 9 months ago

flikites commented 1 year ago

I have a particular use case that requires me to upload a CA to the cert store of the browser that is taking the screenshot. Is this possible to add in?

If not is their an environment variable similar to the proxy that can be used to ignore cert errors?

jbenguira commented 1 year ago

For that particular use case, I recommend you to customize the chrome flags here https://github.com/elestio/ws-screenshot/blob/master/API/shared.js#L21

and include this one: --ignore-certificate-errors

this will disable certificate checks

flikites commented 1 year ago

Thank you! ---- On Mon, 14 Nov 2022 17:06:56 -0500 @.*** wrote ---- For that particular use case, I recommend you to customize the chrome flags here https://github.com/elestio/ws-screenshot/blob/master/API/shared.js#L21 and include this one: --ignore-certificate-errors this will disable certificate checks

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>