I just tried to run my web.py application with 0.36 instead of
0.34. Now HTTPS does not work anymore, HTTP is used instead.
The cookbook example http://webpy.org/cookbook/ssl seems to be
out of date in respect to web.py 0.36.
There are wrong imports in the wsgiserver/ssl* files btw.,
because cherrypy/ does not necessarily exist.
Any hints? TIA!
Can you please try changing:
from cherrypy import wsgiserver
to:
from web import wsgiserver
in wsgiserver/ssl* files?
The wsgiserver code suggests that the old way to specifying SSL
configuration still works.
Anand
The exact output I'm getting is:
/usr/lib/python2.4/site-packages/web/wsgiserver/__init__.py:1701:
DeprecationWarning: SSL attributes are deprecated in CherryPy 3.2, and
will be removed in CherryPy 3.3. Use an ssl_adapter attribute instead.
DeprecationWarning
Looking at 'netstat', I can see python has only openned 8080, nothing for ssl.
> --
> You received this message because you are subscribed to the Google Groups "web.py" group.
> To post to this group, send email to we...@googlegroups.com.
> To unsubscribe from this group, send email to webpy+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/webpy?hl=en.
>
>
That is a warning, nothing to worry about it. CherryPy WSGIserver has
added a new way to pass these parameters and the old way has been
deprecated.
> Looking at 'netstat', I can see python has only openned 8080, nothing for ssl.
8080 is the default port. Try accessing https://localhost:8080/ or
pass 443 as argument to your script.
Anand
Either way, http not https.
@David that's what I've followed as far as I know.
@Anand I might try that but I find it odd noone else is having
issues... I'm hoping its my code's fault and not web.py's, seen as
others apparently aren't having an issue?
On Nov 6, 7:14 pm, Brent Uemura <brent.uem...@gmail.com> wrote:
> Right. So if you want port 443, you'll have to explicitly set it when you
> start the app:
>
> $ sudo python code.py 443
>
> Then you can hit your app via regular https: https://localhost
>
> If you don't it defaults to 8080
>
> $ python code.py
>
> So you'll need to append 8080 to the URL: https://localhost:8080
>
> It still uses ssl, just on a different port.
>
> -Brent
>
> On Wed, Nov 2, 2011 at 11:57 AM, David Caro <david.caro.al...@gmail.com>wrote:
>
>
>
>
>
>
>
> > Try this:
> >http://groups.google.com/group/webpy/browse_thread/thread/bbeb3fc7f24...
Back to web.py 0.36 and I'm back to it bringing up only a http server,
no ssl.
Any help please?
So, I hope this proves its web.py's fault and not mine... might have a
look later to see what's changed and make that change to 0.36 as I'm
sure there's lots of nastiness in the latest version... if anyone
wants to save me the effort be my guest ;-)
Joseph Price
I can confirm that the current github version seems to run the
first SSL example from http://webpy.org/cookbook/ssl perfectly.
Are there any plans to release 0.37 soon?
Yes. I'm trying to fix some open bugs and update the cherrypy server
to the latest. It should be ready in a week or two.
Anand
Thanks for fixing the SSL exception crash. Looking forward to the release.
-Brent
This will be cherrypy 3.2.2?
> It should be ready in a week or two.
Many thanks in advance!