Https using socketserver?

I managed to program an http web server to run python script. Now I need to implement encryption. In the code below I already do the handshake between the client and the server. Where the client sends the version of (TLS) and the message (Client Hello). I’ve already generated the Certificate and the public and private keys, but I’m having trouble understanding and coding. Can someone give me a help ?

# Native module : socketserver -> https://docs.python.org/3/library/socketserver.html#module-socketserver
from socketserver import BaseRequestHandler, ThreadingTCPServer
# Native module : ssl -> https://docs.python.org/3/library/ssl.html#module-ssl
import ssl


class TCPIPV4HTTPS(BaseRequestHandler):
    pass

    class TLSProtocol():
        pass

if __name__ == "__main__":
    HOST, PORT = "", 443

    # Create the asynchronous server, binding to localhost on port 443
    with ThreadingTCPServer((HOST, PORT), TCPIPV4HTTPS.TLSProtocol) as https:
        # print("Server : Action v0.0.1, running address http://webstrucs.com:443")
        # print("cancel program with Ctrl-C")
        https.serve_forever()

That’s among the most complicated protocols you could possibly implement as a learning experience. Are you having trouble with a certain specific step, or simply with starting at all, as it looks like there? If it’s just plain way too big to even figure out where to start without your brain rebooting, abandon this project and start with something smaller in scope with a state machine, like FTP, and work your way up to TLS if you absolutely MUST challenge the mountain.

I believe in the God of the impossible