Skip to content

Instantly share code, notes, and snippets.

@major
Created July 29, 2016 12:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save major/b840c1c6c118528c3b528f021c004c5b to your computer and use it in GitHub Desktop.
Save major/b840c1c6c118528c3b528f021c004c5b to your computer and use it in GitHub Desktop.
From d6f679e966787d19d16bce80226f67661b78e4a6 Mon Sep 17 00:00:00 2001
From: Major Hayden <major@mhtx.net>
Date: Fri, 29 Jul 2016 07:48:22 -0500
Subject: [PATCH] Add SNI support via OS packages
Some Linux distribution releases, such as CentOS 7 and Xenial, have
trouble validating SSL certificates when using get_url with servers
that use Server Name Indication (SNI).
This patch adds packages for those distributions that allow Python
to validate connections with servers using SNI.
---
other-requirements.txt | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/other-requirements.txt b/other-requirements.txt
index a145f8b..603ad91 100644
--- a/other-requirements.txt
+++ b/other-requirements.txt
@@ -22,5 +22,13 @@ libffi-dev [platform:dpkg]
libffi-devel [platform:rpm]
openssl-devel [platform:rpm]
-# For selinux
+# For SELinux
libselinux-python [platform:rpm]
+
+# For SSL SNI support
+python-pyasn1 [platform:dpkg]
+python-ndg-httpsclient [platform:dpkg]
+epel-release [platform:rpm]
+python-pyasn1 [platform:rpm]
+pyOpenSSL [platform:rpm]
+python-ndg_httpsclient [platform:rpm]
--
2.7.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment