gdomenici / plugin.video.pcloud-video-streaming

Plugin for Kodi (Matrix and above) to provide video streaming from pcloud.com
GNU General Public License v3.0
14 stars 3 forks source link

urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:661) #20

Closed harryberlin closed 4 years ago

harryberlin commented 5 years ago

ssl issue exist any more :( finally today i did the test for #18 with new version on windows and got the errors again.

12:23:35.432 T:7240 ERROR: ERROR: cannot logon to pCloud: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:661)> 12:23:35.474 T:3432 ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.video.pcloud-video-streaming/?content_type=video 12:23:35.482 T:3432 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.pcloud-video-streaming/?content_type=video) failed

gdomenici commented 5 years ago

Hi @harryberlin

Did you do the steps mentioned in #18? Namely,

set the environment variable PYTHONHTTPSVERIFY=0 in Windows "Advanced system settings" dialog, and launch Kodi after that. If now any Python plugin (not just mine) accesses an HTTPS website with a "bad" TLS certificate, the plugin will ignore the error and proceed as though it was a trusted cert.

Screenshot on Win10: Screenshot on Win10

If I do this and then launch Kodi, all cert errors are ignored.

harryberlin commented 5 years ago

because of your post in #18 and #19, i thought it is not the method to prefer.

gdomenici commented 5 years ago

Hi,

In #18 I fixed the problem with the "+" in the username. The TLS untrusted cert is a different problem which is not related to this plugin as far as I can tell -- in fact, the fact that the PCloud TLS cert is seen as untrusted on your machine is puzzling to me (it is trusted on all the devices I could lay my hands on).

Yet, with the PYTHONHTTPSVERIFY environment variable, you get a "free" solution to this problem.

harryberlin commented 5 years ago

ok

kavita9742 commented 4 years ago

But i am facing same issue . i have window 10

kavita9742 commented 4 years ago

still i am facing same issue even though i have set system variable to PYTHONHTTPSVERIFY=0.

gdomenici commented 4 years ago

still i am facing same issue even though i have set system variable to PYTHONHTTPSVERIFY=0.

Hi @kavita9742

May I have from you a snippet from the relevant lines in the log file? Let me know if you need help finding the log file location.

Kind regards,

Guido

gdomenici commented 4 years ago

Closing due to long inactivity. If any need, please reopen.