clientauthentifizierung auf optional gesetzt

This commit is contained in:
example 2022-04-06 10:20:06 +02:00
parent 58d9c327c9
commit 804e9a10e5

View file

@ -237,7 +237,7 @@ def main():
sys.exit(1)
context = ssl.create_default_context(ssl.Purpose.CLIENT_AUTH)
context.verify_mode = ssl.CERT_REQUIRED
context.verify_mode = ssl.CERT_OPTIONAL
context.load_cert_chain(certfile=config['server']['cert'],
keyfile=config['server']['key'])
context.load_verify_locations(cafile=config['client']['cert'])