# HTTPS broken

**URL:** <https://forums.plex.tv/t/https-broken/216635>\
**Category:** Dev/API Corner\
**Tags:** plugin-dev\
**Created:** [December 6, 2017, 3:45am UTC](https://forums.plex.tv/t/https-broken/216635 "2017-12-06T03:45:38Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![sander1](https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/32.png) [@sander1](https://forums.plex.tv/u/sander1)\
**Post date:** [March 26, 2018, 9:56pm UTC](https://forums.plex.tv/t/https-broken/216635/8 "2018-03-26T21:56:56Z")

</div>

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.

1. Do not verify certificates. A bit like how older Python versions worked:

- [Import ssl and urllib2](https://github.com/plexinc-plugins/ABC.bundle/blob/736b66937f0a2f8a6f8a9379ea27bd62bfe89f34/Contents/Code/ __init__.py#L1 "Import ssl and urllib2")
- [Use urllib2 with a default ssl context](https://github.com/plexinc-plugins/ABC.bundle/blob/736b66937f0a2f8a6f8a9379ea27bd62bfe89f34/Contents/Code/ __init__.py#L123-L133 "Use urllib2 with a default ssl context") (which does not verify the certificate).

Or:  
2. Use external Python libraries

- Add [those libraries](https://github.com/piplongrun/muvio.bundle/tree/c859f420361e01e480410647aaabb6ddc713aeaa/Contents/Libraries/Shared "those libraries") to your project bundle and use them.
- [Set PlexPluginCodePolicy to Elevated in Info.plist](https://github.com/piplongrun/muvio.bundle/blob/c859f420361e01e480410647aaabb6ddc713aeaa/Contents/Info.plist#L11-L12 "Set PlexPluginCodePolicy to Elevated in Info.plist")
- [Import certifi and requests into your Python code](https://github.com/piplongrun/muvio.bundle/blob/c859f420361e01e480410647aaabb6ddc713aeaa/Contents/Code/ __init__.py#L1-L2 "Import certifi and requests into your Python code")
- [Use requests in your code](https://github.com/piplongrun/muvio.bundle/blob/c859f420361e01e480410647aaabb6ddc713aeaa/Contents/Code/ __init__.py#L68 "Use requests in your code")

---

_[View the full topic](https://forums.plex.tv/t/https-broken/216635)._
