Skip to content

Commit

Permalink
Fix code scanning alert no. 1: Use of insecure SSL/TLS version (#1826)
Browse files Browse the repository at this point in the history
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
  • Loading branch information
pipiche38 and github-advanced-security[bot] authored Jan 17, 2025
1 parent 88398f8 commit 43cf3dc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Classes/WebServer/com.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,8 @@ def run_server(self, host='0.0.0.0', port=9440): # nosec
self.logging( "Log", f"++ WebUI - SSL Private key {server_private_key}")

context = check_cert_and_key(self, server_certificate, server_private_key)
if context:
context.minimum_version = ssl.TLSVersion.TLSv1_2

if context:
self.server = context.wrap_socket( self.server, server_side=True, )
Expand Down

0 comments on commit 43cf3dc

Please sign in to comment.