msokk / electron-render-service

Microservice for rendering PDF/PNG/JPEG from HTML with Electron
MIT License
102 stars 31 forks source link

How to disable certificate check? #63

Closed hsimonatavayadotcom closed 6 years ago

hsimonatavayadotcom commented 6 years ago

Is it possible to disable the certificate check? I.E. for self-signed certificates.

Reggino commented 6 years ago

There should be an extra command line switch: --ignore-certificate-errors

Maybe electron command line switches should be configurable via environment variables and applied here:

https://github.com/msokk/electron-render-service/blob/master/src/server.js#L11

But these are not configurable atm.

msokk commented 6 years ago

@hsimonatavayadotcom sorry for coming back to this after some months, but I added an env flag to control these command line switches in the latest v1 release. There is now a CHROMIUM_CLI_SWITCHES environment variable, so you can run the binary or Docker image with CHROMIUM_CLI_SWITCHES="ignore-certificate-errors".