Nice article and nice work. For web2py devs who need SSL. It will automatically generate .crt and .key files. Then, if you gonna run web2py, just add -c generated.crt -k generated.key arguments.
Generate SSL self-signed certificate and key, enable https encryption in web2py | Recipe | Web2py Slices - Recipes, Tutorials, Code, Questions