Merge "Temporarily remove dependency on package certifi"
This commit is contained in:
commit
4381c685b3
|
@ -23,7 +23,6 @@ import sys
|
||||||
import io
|
import io
|
||||||
import json
|
import json
|
||||||
import ssl
|
import ssl
|
||||||
import certifi
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
# python 2 and python 3 compatibility library
|
# python 2 and python 3 compatibility library
|
||||||
|
@ -76,10 +75,11 @@ class RESTClientObject(object):
|
||||||
|
|
||||||
# https pool manager
|
# https pool manager
|
||||||
# certificates validated using Mozilla’s root certificates
|
# certificates validated using Mozilla’s root certificates
|
||||||
|
# TODO(hongbin): fix the hard-coded ca_certs path
|
||||||
self.ssl_pool_manager = urllib3.PoolManager(
|
self.ssl_pool_manager = urllib3.PoolManager(
|
||||||
num_pools=pools_size,
|
num_pools=pools_size,
|
||||||
cert_reqs=ssl.CERT_REQUIRED,
|
cert_reqs=ssl.CERT_REQUIRED,
|
||||||
ca_certs=certifi.where()
|
ca_certs='/etc/ssl/certs/ca-certificates.crt'
|
||||||
)
|
)
|
||||||
|
|
||||||
def agent(self, url):
|
def agent(self, url):
|
||||||
|
|
Loading…
Reference in New Issue