switching from http to https turbogears 2.3.9 and gearbox

35 views
Skip to first unread message

margaret...@gmail.com

unread,
Nov 1, 2016, 10:48:55 AM11/1/16
to TurboGears
I'm trying to switch a recently quick-started project from http to https. I've been told that there is a way to bind turbogears to an SSL with gearbox, without using apache or nginx, but I'm having trouble finding any documentation to that effect. Apologies in advance if this question is vague or too basic, but if anyone could provide me with some resources that could help me wrap my head around how this sort of thing is accomplished it would be much appreciated. This is the first experience I have with webframeworks. 

Alessandro Molina

unread,
Nov 1, 2016, 4:35:04 PM11/1/16
to TurboGears
It's not a particularly documented feature of Gearbox as using wsgiref to serve production apps is usually discouraged.

There are some hints into the gearbox wsgiref_server_runner docstring

$ openssl genrsa 1024 > keyfile
$ chmod 400 keyfile
$ openssl req -new -x509 -nodes -sha1 -days 365 -key keyfile > certfile
$ chmod 400 certfile

Then set wsgiref.certfile=certfile and wsgiref.keyfile=keyfile options in your development.ini

On Sat, Oct 22, 2016 at 2:25 AM, <margaret...@gmail.com> wrote:
I'm trying to switch a recently quick-started project from http to https. I've been told that there is a way to bind turbogears to an SSL with gearbox, without using apache or nginx, but I'm having trouble finding any documentation to that effect. Apologies in advance if this question is vague or too basic, but if anyone could provide me with some resources that could help me wrap my head around how this sort of thing is accomplished it would be much appreciated. This is the first experience I have with webframeworks. 

--
You received this message because you are subscribed to the Google Groups "TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email to turbogears+unsubscribe@googlegroups.com.
To post to this group, send email to turbo...@googlegroups.com.
Visit this group at https://groups.google.com/group/turbogears.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages