Skip to content

Commit e29f719

Browse files
committed
Allow a password to be passed
1 parent b7c269a commit e29f719

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pydruid/client.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ def set_proxies(self, proxies):
4444
opener = urllib.request.build_opener(proxy_support)
4545
urllib.request.install_opener(opener)
4646

47-
def set_cert_chain(self, cert, keyfile):
47+
def set_cert_chain(self, certfile, keyfile=None, password=None):
4848
context = ssl.create_default_context()
49-
context.load_cert_chain(cert, keyfile)
49+
context.load_cert_chain(certfile, keyfile, password)
5050
handler = urllib.request.HTTPSHandler(context=context)
5151
urllib.request.install_opener(handler)
5252

0 commit comments

Comments
 (0)