Skip to content

Commit

Permalink
Make https ssl not error
Browse files Browse the repository at this point in the history
  • Loading branch information
jpnavarro committed Oct 21, 2022
1 parent 2310beb commit 4b61d16
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/router_cider.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,9 @@ def Retrieve_Affiliation_Infrastructure(self, url, affiliation='XSEDE'):
headers = {'Content-type': 'application/json',
'XA-CLIENT': affiliation,
'XA-KEY-FORMAT': 'underscore'}
ctx = ssl.create_default_context(ssl.Purpose.CLIENT_AUTH)
# ctx = ssl.create_default_context(ssl.Purpose.CLIENT_AUTH)
# 2022-10-21 JP - figure out later the appropriate level of ssl verification
ctx = ssl.create_default_context()
conn = httplib.HTTPSConnection(host=host, port=port, context=ctx)
conn.request('GET', urlp.path, None , headers)
self.logger.debug('HTTP GET {}'.format(url))
Expand Down

0 comments on commit 4b61d16

Please sign in to comment.