Skip to content
New issue

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

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

Already on GitHub? # to your account

Unable to verify the fisrt certificate (Puppeteer error) #82

Open
jathri opened this issue Dec 14, 2023 · 3 comments
Open

Unable to verify the fisrt certificate (Puppeteer error) #82

jathri opened this issue Dec 14, 2023 · 3 comments

Comments

@jathri
Copy link

jathri commented Dec 14, 2023

Getting this error after signing in my work MS365 account in chrome (I can see video playing in browser but downloading in Sharedown never starts):
https://i.imgur.com/KzmTEHY.png
Relevant threads (possibly):
https://stackoverflow.com/questions/31673587/error-unable-to-verify-the-first-certificate-in-nodejs
https://stackoverflow.com/questions/29283040/how-to-add-custom-certificate-authority-ca-to-nodejs
Is there any easy solution so as I am able to download video?

@kylon
Copy link
Owner

kylon commented Dec 23, 2023

i don't have an answer for this, i think this is what is required in your case puppeteer/puppeteer#5378 (comment)

the first stackoverflow link has instructions on how to get the cert

@jathri
Copy link
Author

jathri commented Dec 24, 2023

Thank you for your answer. Which is similar to links posted above. But how can I change env variable for Electron encapsulated app like Sharedown? Is it as easy as to place .env file somewhere in its structure? Or should I set it like this (for windows env): https://phoenixnap.com/kb/windows-set-environment-variable

@kylon
Copy link
Owner

kylon commented Feb 4, 2024

mh, according to that it seems you may need to build it yourself with that var set
like
set NODE_EXTRA_CA_CERTS=C:\path\to\certificate.pem
and npm install
then you can run it or make the package (not tested)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants