Install SSL
sudo snap install core; sudo snap refresh core
Install SSL
sudo snap install core; sudo snap refresh core
ssl server python
1. openssl req -new -x509 -days 365 -nodes -out cert.pem -keyout cert.pem
2. Use the Code
import BaseHTTPServer, SimpleHTTPServer
import ssl
httpd = BaseHTTPServer.HTTPServer(('localhost', 4443), SimpleHTTPServer.SimpleHTTPRequestHandler)
httpd.socket = ssl.wrap_socket (httpd.socket, certfile='./server.pem', server_side=True) # Generate the CRT File by OPENSSL.
httpd.serve_forever()
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us