blog/_posts/2016-01-10-insecureplatform...

24 lines
975 B
Markdown

---
title: "InsecurePlatformWarning: A true SSLContext object is not available"
date: 2016-01-10
url: insecureplatformwarning-a-true-sslcontext-object-is-not-available
layout: post
category: Hacking
---
[![A missing blog post image](/img/blog/insecureplatformwarning-a-true-sslcontext-object-is-not-available.png)](/img/blog/insecureplatformwarning-a-true-sslcontext-object-is-not-available.png)
With some scripts running Python and trying to post or send data on web, you may have this warning appearing.
This is the requests module which complains about your system.
To help him during the fight, we've to install some packages, through `pip` :
`$ wget https://bootstrap.pypa.io/get-pip.py`
`# python get-pip.py`
Once `pip` is correctly installed, run :
`# pip install pyopenssl ndg-httpsclient pyasn1`
Let him build and install the new modules alone (it may take a long time), and when it's finished, run again your scripts; the warnings should have disappeared.