Skip to content

Instantly share code, notes, and snippets.

View ignacevau's full-sized avatar

Ignace Vauterin ignacevau

View GitHub Profile
@ignacevau
ignacevau / client.py
Created November 21, 2022 00:58 — forked from zapstar/client.py
Python Asyncio SSL client and server examples
#!/usr/bin/env python3
import asyncio
import ssl
@asyncio.coroutine
async def echo_client(data, loop):
ssl_ctx = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
ssl_ctx.options |= ssl.OP_NO_TLSv1