I followed this url to create a X509 certificate. And the code is:
from OpenSSL import crypto, SSL from socket import gethostname from pprint import pprint f
Just remove . So stupid I am.