7c194c
From 81003c91187947e7f3baf99186e0604ea3e66cc2 Mon Sep 17 00:00:00 2001
7c194c
From: rpm-build <rpm-build>
7c194c
Date: Tue, 11 Jun 2019 10:32:53 -0400
7c194c
Subject: [PATCH] provide system ca-bundle as default if no bundle is set
7c194c
7c194c
Signed-off-by: rpm-build <rpm-build>
7c194c
---
7c194c
 websocket/_http.py | 2 ++
7c194c
 1 file changed, 2 insertions(+)
7c194c
7c194c
diff --git a/websocket/_http.py b/websocket/_http.py
7c194c
index 5b9a26d..34a87f1 100644
7c194c
--- a/websocket/_http.py
7c194c
+++ b/websocket/_http.py
7c194c
@@ -245,6 +245,8 @@ def _ssl_socket(sock, user_sslopt, hostname):
7c194c
     sslopt.update(user_sslopt)
7c194c
 
7c194c
     certPath = os.environ.get('WEBSOCKET_CLIENT_CA_BUNDLE')
7c194c
+    if certPath is None:
7c194c
+        certPath = '/etc/pki/tls/certs/ca-bundle.crt'
7c194c
     if certPath and os.path.isfile(certPath) \
7c194c
             and user_sslopt.get('ca_certs', None) is None \
7c194c
             and user_sslopt.get('ca_cert', None) is None:
7c194c
-- 
7c194c
2.17.2
7c194c