Skip to content

Commit

Permalink
fix: jans-linux-setup vulnerability
Browse files Browse the repository at this point in the history
  • Loading branch information
devrimyatar committed Sep 16, 2022
1 parent b257c13 commit f626ea2
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -437,11 +437,16 @@ def check_remote_ldap(self, ldap_host, ldap_binddn, ldap_password):
def check_oxd_server(self, oxd_url, error_out=True, log_error=True):

oxd_url = os.path.join(oxd_url, 'health-check')

ctx = ssl.create_default_context()
ctx.check_hostname = True
ctx.verify_mode = ssl.CERT_NONE

try:
result = urllib.request.urlopen(
oxd_url,
timeout = 2,
context=ssl._create_unverified_context()
timeout=2,
context=ctx
)
if result.code == 200:
oxd_status = json.loads(result.read().decode())
Expand Down

0 comments on commit f626ea2

Please sign in to comment.