Created
January 30, 2015 22:09
-
-
Save andresriancho/77d1d163c9987966ce77 to your computer and use it in GitHub Desktop.
tls
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import socket | |
import ssl | |
sock = socket.create_connection(('dadario.com.br', 443)) | |
sock = ssl.wrap_socket(sock, None, None, ssl_version=ssl.PROTOCOL_TLSv1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
pyca/pyopenssl#168