Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore self-signed certificates (enhancement) #9

Closed
tslpre opened this issue Apr 14, 2021 · 2 comments
Closed

Ignore self-signed certificates (enhancement) #9

tslpre opened this issue Apr 14, 2021 · 2 comments

Comments

@tslpre
Copy link

tslpre commented Apr 14, 2021

Hello, as mentioned in #4 - there is no option to render pages from HA when a self-signed certificate exists. It would be nice to include an extra configuration option that would then trigger the addition of the argument "--ignore-certificate-errors" in the command for chromium.

I've tested by mounting /app on a local folder outside the container with a modified index.js that contains the extra argument and it works.

@sibbl
Copy link
Owner

sibbl commented Apr 24, 2021

I've added the option to set UNSAFE_IGNORE_CERTIFICATE_ERRORS=true and hope this works as expected 👍

@tslpre
Copy link
Author

tslpre commented Apr 26, 2021

Thank you very much! I've tested this now and I can confirm it's working as expected. With the new option I can confirm that the command now executed contains "--ignore-certificate-errors":

/usr/lib/chromium/chrome --extra-plugin-dir=/usr/lib/nsbrowser/plugins --user-data-dir=/root/.config/chromium --disable-background-networking --enable-features=NetworkService,NetworkServiceInProcess --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=TranslateUI --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --disable-sync --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --enable-blink-features=IdleDetection --headless --hide-scrollbars --mute-audio about:blank --disable-dev-shm-usage --no-sandbox --lang=en --ignore-certificate-errors --remote-debugging-port=0 --user-data-dir=/tmp/puppeteer_dev_chrome_profile-KiPIPm

@tslpre tslpre closed this as completed Apr 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants