def generate_adhoc_ssl_context():
    from OpenSSL import SSL
    cert, pkey = generate_adhoc_ssl_pair()
    ctx = SSL.Context(SSL.SSLv23_METHOD)
    ctx.use_privatekey(pkey)
    ctx.use_certificate(cert)
    return ctx
Generates an adhoc SSL context for the development server.
dataset/ETHPy150Open Eforcers/gae-flask-todo/lib/werkzeug/serving.py/generate_adhoc_ssl_context