Message387400
| Author |
webstarnantes |
| Recipients |
christian.heimes, gvanrossum, methane, pablogsal, vstinner, webstarnantes, yselivanov |
| Date |
2021年02月20日.09:54:30 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1613814870.65.0.111369094309.issue37146@roundup.psfhosted.org> |
| In-reply-to |
| Content |
dans cette version pour securité maximale
SSLContext.wrap_socket()
import socket
import ssl
hostname = 'www.python.org'
context = ssl.create_default_context()
with socket.create_connection((hostname, 443)) as sock:
with context.wrap_socket(sock, server_hostname=hostname) as ssock:
print(ssock.version())
https://backlinkstrong.com/ |
|