<div dir="ltr">Hi Twistedeers!<div><br></div><div>  I have a twisted plugin that I created to replace the Django dev server for our devs. It sets up a separate twisted service for serving media, so we don't need any urls.py tomfoolery in dev. It also sets up an experimental REST api server which we hope to make javascript requests to in the near future.</div>
<div><br></div><div>  The core of the code looks like this:</div><div><br></div><div><div>    resource = WSGIResource(reactor, reactor.getThreadPool(), WSGIHandler())</div><div>    endpoint = 'tcp:port=8000'</div>
<div>    server = strports.service(endpoint, server.Site(resource))</div><div>    server.setServiceParent(application)</div></div><div><br></div><div>  This has worked great for a while. However, we have some views that we require https on, and so this dev server doesn't allow us to get to those views at all. I generated a .key file and a .crt file with openssl, and then cat'd them together to make a pem, and then changed the endpoint to be...</div>
<div><br></div><div>    endpoint = 'ssl:port=8000:privateKey=/path/to/key.pem'</div><div><br></div><div>  Now when I open my browser and type <a href="https://localhost:8000">https://localhost:8000</a>, chrome just hangs. I don't really know how to diagnose this, because I don't really know anything about SSL (it's all just magic security goodness to me). I don't necessarily need a direct answer (though it will certainly make me look good to all the other devs), but maybe some pointers in the right direction would help.</div>
<div><br></div><div>-Piper</div></div>