Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom certificate bundles #494

Merged
merged 2 commits into from Mar 18, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions minio/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ class Minio(object):
def __init__(self, endpoint, access_key=None,
secret_key=None, secure=True,
region=None,
timeout=None):
timeout=None,
certificate_bundle=certifi.where()):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tabbing.. ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Look at latest commit to branch


# Validate endpoint.
is_valid_endpoint(endpoint)
Expand All @@ -145,7 +146,7 @@ def __init__(self, endpoint, access_key=None,
self._http = urllib3.PoolManager(
timeout=self._conn_timeout,
cert_reqs='CERT_REQUIRED',
ca_certs=certifi.where(),
ca_certs=certificate_bundle,
retries=urllib3.Retry(
total=5,
backoff_factor=0.2,
Expand Down