|
@@ -17,12 +17,14 @@ class orthancInterface:
|
|
|
|
|
|
self.http=urllib3.PoolManager()
|
|
|
|
|
|
- if 'SSL' in self.connectionConfig:
|
|
|
+
|
|
|
+ if 'SSL' in self.connectionConfig['orthanc']:
|
|
|
+ sslConfig=self.connectionConfig['orthanc']['SSL']
|
|
|
self.http = urllib3.PoolManager(\
|
|
|
- cert_file=self.connectionConfig['SSL']['user'],\
|
|
|
+ cert_file=sslConfig['user'],\
|
|
|
cert_reqs='CERT_REQUIRED',\
|
|
|
- key_file=self.connectionConfig['SSL']['key'],\
|
|
|
- ca_certs=self.connectionConfig['SSL']['ca'])
|
|
|
+ key_file=sslConfig['key'],\
|
|
|
+ ca_certs=sslConfig['ca'])
|
|
|
|
|
|
#password=self.connectionConfig['SSL']['keyPwd'],\ doesnt work until 1.25
|
|
|
|