File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -162,6 +162,8 @@ class Configuration:
162162 :param ssl_ca_cert: str - the path to a file of concatenated CA certificates
163163 in PEM format.
164164 :param retries: Number of retries for API requests.
165+ :param ca_cert_data: verify the peer using concatenated CA certificate data
166+ in PEM (str) or DER (bytes) format.
165167
166168 :Example:
167169
@@ -202,6 +204,7 @@ def __init__(
202204 ignore_operation_servers : bool = False ,
203205 ssl_ca_cert : Optional [str ]= None ,
204206 retries : Optional [int ] = None ,
207+ ca_cert_data : Optional [Union [str , bytes ]] = None ,
205208 * ,
206209 debug : Optional [bool ] = None ,
207210 ) -> None :
@@ -279,6 +282,10 @@ def __init__(
279282 self .ssl_ca_cert = ssl_ca_cert
280283 """Set this to customize the certificate file to verify the peer.
281284 """
285+ self .ca_cert_data = ca_cert_data
286+ """Set this to verify the peer using PEM (str) or DER (bytes)
287+ certificate data.
288+ """
282289 self .cert_file = None
283290 """client certificate file
284291 """
Original file line number Diff line number Diff line change @@ -77,6 +77,7 @@ def __init__(self, configuration) -> None:
7777 "ca_certs" : configuration .ssl_ca_cert ,
7878 "cert_file" : configuration .cert_file ,
7979 "key_file" : configuration .key_file ,
80+ "ca_cert_data" : configuration .ca_cert_data ,
8081 }
8182 if configuration .assert_hostname is not None :
8283 pool_args ['assert_hostname' ] = (
You can’t perform that action at this time.
0 commit comments