I’ve never understood the error completely. I know it has something to do with new versions of Python/urllib trying to verify the security certificates (older versions of Python/urllib did not do this).
I only know of some workarounds.
- Do not verify certificates. A bit like how older Python versions worked:
- Import ssl and urllib2
- Use urllib2 with a default ssl context (which does not verify the certificate).
Or:
2. Use external Python libraries
- Add those libraries to your project bundle and use them.
- Set PlexPluginCodePolicy to Elevated in Info.plist
- Import certifi and requests into your Python code
- Use requests in your code