Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- self.context = ssl.SSLContext(ssl.PROTOCOL_TLSv1_2)
- self.context.verify_mode = ssl.CERT_REQUIRED
- self.context.load_verify_locations(cafile="/path/to/ca.pem")
- self.context.load_cert_chain(certfile="/path/to/server.pem", keyfile="/path/to/server.key")
- context.wrap_socket(newsocket,server_side=True)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement