Skip to content

Commit 6527aa8

Browse files
committed
Fix the cert store handling
1 parent 95ad9c3 commit 6527aa8

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

check_vmware_nsxt.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
along with this program. If not, see <http://www.gnu.org/licenses/>.
3131
"""
3232

33+
import os
3334
import sys
3435
import argparse
3536
import logging
@@ -65,6 +66,7 @@ def fix_tls_cert_store():
6566
system_ca_store = ssl.get_default_verify_paths().cafile
6667
if os.stat(system_ca_store).st_size > 0:
6768
requests.utils.DEFAULT_CA_BUNDLE_PATH = system_ca_store
69+
requests.adapters.DEFAULT_CA_BUNDLE_PATH = system_ca_store
6870
except:
6971
pass
7072

0 commit comments

Comments
 (0)