Skip to content
Snippets Groups Projects
Commit c7856bcb authored by Dominik Fuhrmann's avatar Dominik Fuhrmann
Browse files

added debugging

parent b087f6ae
No related branches found
No related tags found
No related merge requests found
...@@ -12,6 +12,8 @@ def run_client(file_path): ...@@ -12,6 +12,8 @@ def run_client(file_path):
context = wolfssl.SSLContext(wolfssl.PROTOCOL_TLSv1_3) # TLS 1.3 verwenden context = wolfssl.SSLContext(wolfssl.PROTOCOL_TLSv1_3) # TLS 1.3 verwenden
context.load_verify_locations(ca_cert) context.load_verify_locations(ca_cert)
context.set_ciphers(cipher_suite) context.set_ciphers(cipher_suite)
context.set_debug(True)
print(f"Cipher Suite '{cipher_suite}' erfolgreich gesetzt!") print(f"Cipher Suite '{cipher_suite}' erfolgreich gesetzt!")
......
...@@ -12,6 +12,8 @@ def run_server(): ...@@ -12,6 +12,8 @@ def run_server():
context = wolfssl.SSLContext(wolfssl.PROTOCOL_TLSv1_3) # TLS 1.3 verwenden context = wolfssl.SSLContext(wolfssl.PROTOCOL_TLSv1_3) # TLS 1.3 verwenden
context.load_cert_chain(certfile=cert_file, keyfile=key_file) context.load_cert_chain(certfile=cert_file, keyfile=key_file)
context.set_ciphers(cipher_suite) context.set_ciphers(cipher_suite)
context.set_debug(True)
# Server-Socket erstellen # Server-Socket erstellen
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as sock: with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as sock:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment