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

ERR_CERT_AUTHORITY_INVALID #40

Open
ghost opened this issue Dec 8, 2022 · 1 comment
Open

ERR_CERT_AUTHORITY_INVALID #40

ghost opened this issue Dec 8, 2022 · 1 comment

Comments

@ghost
Copy link

ghost commented Dec 8, 2022

hi, when i want to connect on resource with self signer certificate, i receive error:

C:\Users\user>capture-website --overwrite -d 10 --format=png --filename=image123.png "https://127.0.0.1
file:///C:/Users/user/AppData/Roaming/npm/node_modules/pageres-cli/node_modules/puppeteer-core/lib/esm/puppeteer/common/Frame.js:210
                    ? new Error(`${response.errorText} at ${url}`)
                      ^

Error: net::ERR_CERT_AUTHORITY_INVALID at https://127.0.0.1
    at navigate (file:///C:/Users/user/AppData/Roaming/npm/node_modules/pageres-cli/node_modules/puppeteer-core/lib/esm/puppeteer/common/Frame.js:210:23)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Frame.goto (file:///C:/Users/user/AppData/Roaming/npm/node_modules/pageres-cli/node_modules/puppeteer-core/lib/esm/puppeteer/common/Frame.js:180:21)
    at async CDPPage.goto (file:///C:/Users/user/AppData/Roaming/npm/node_modules/pageres-cli/node_modules/puppeteer-core/lib/esm/puppeteer/common/Page.js:437:16)
    at async internalCaptureWebsiteCore (file:///C:/Users/user/AppData/Roaming/npm/node_modules/pageres-cli/node_modules/capture-website/index.js:282:2)
    at async internalCaptureWebsite (file:///C:/Users/user/AppData/Roaming/npm/node_modules/pageres-cli/node_modules/capture-website/index.js:162:10)
    at async Pageres.create (file:///C:/Users/user/AppData/Roaming/npm/node_modules/pageres-cli/node_modules/pageres/dist/index.js:226:28)
    at async file:///C:/Users/user/AppData/Roaming/npm/node_modules/pageres-cli/node_modules/p-map/index.js:141:20

Node.js v18.12.1

how to fix it?

@fiskhandlarn
Copy link

this worked for me:

capture-website --launch-options='{"ignoreHTTPSErrors": true}'

(solution found at sindresorhus/capture-website#110 (comment))

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

1 participant