import websocket
import ssl
if __name__ == "__main__":
ws = websocket.WebSocket()
ws.connect("wss://localhost:4444", sslopt={"cert_reqs": ssl.CERT_REQUIRED,
"ca_certs": './certificate.pem',
"keyfile": './key.pem'}
)