How to make a TLS connection using python?
问题 I would like to create a TLS connection to a server. Then, I want to send some encrypted data to the server. I know the hostname and port and I have the certificate. Surprisingly, I also received the private key of the server. However, I think it is not normal that I received the private key. The first question is that, do I really need the private key to make a TLS connection? By the way, I am using this python script import socket import ssl server_addr = '**.**.**.**' server_port = ****