kylon / Sharedown

Electron application to download Sharepoint videos (especially meant for students)
GNU General Public License v3.0
376 stars 41 forks source link

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

Open jathri opened 11 months ago

jathri commented 11 months ago

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 commented 11 months ago

i don't have an answer for this, i think this is what is required in your case https://github.com/puppeteer/puppeteer/issues/5378#issuecomment-1691091209

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

jathri commented 11 months ago

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 commented 9 months ago

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)