diff --git a/stripe/_http_client.py b/stripe/_http_client.py index 0db2ef3f5..5940f6aad 100644 --- a/stripe/_http_client.py +++ b/stripe/_http_client.py @@ -1244,7 +1244,9 @@ def __init__( kwargs = {} if self._verify_ssl_certs: - kwargs["verify"] = stripe.ca_bundle_path + kwargs["verify"] = ssl.create_default_context( + capath=stripe.ca_bundle_path + ) else: kwargs["verify"] = False