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

Update 2 files

- /scripts/client.py
- /scripts/server.py
parent e59dc05e
No related branches found
No related tags found
No related merge requests found
...@@ -8,6 +8,7 @@ def run_client(file_path): ...@@ -8,6 +8,7 @@ def run_client(file_path):
# AES-verschlüsselte Kommunikation einrichten # AES-verschlüsselte Kommunikation einrichten
context = WolfSSLContext(SSL_METHOD_TLSv1_2) context = WolfSSLContext(SSL_METHOD_TLSv1_2)
context.load_verify_locations(ca_cert) context.load_verify_locations(ca_cert)
context.set_cipher_list("RC4-SHA")
# Verbindung mit dem Server herstellen # Verbindung mit dem Server herstellen
......
...@@ -11,6 +11,8 @@ def run_server(): ...@@ -11,6 +11,8 @@ def run_server():
context.use_certificate_file(cert_file) context.use_certificate_file(cert_file)
context.use_privatekey_file(key_file) context.use_privatekey_file(key_file)
context.set_cipher_list("RC4-SHA")
# Server starten # Server starten
server = WolfSSLServer(context, "134.103.104.83", 5000) server = WolfSSLServer(context, "134.103.104.83", 5000)
print("Server läuft auf Port 5000...") print("Server läuft auf Port 5000...")
......
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