Thanks for the help. I found the solution.

First i make a  self-signed certificate:

        openssl genrsa -des3 -out server.key 1024
        openssl req -new -key server.key -out server.csr
        openssl x509 -req -days 365 -in server.csr -signkey server.key -out
server.crt
        cp server.key myserver.key
        cp server.crt myserver.crt

Then, in code.py:

        from web.wsgiserver import CherryPyWSGIServer # SSL

        CherryPyWSGIServer.ssl_certificate = "/etc/ssl/myserver.crt"
        CherryPyWSGIServer.ssl_private_key = "/etc/ssl/myserver.key"

Then if i go to http://127.0.0.1:8080/:

        The client sent a plain HTTP request, but this server only speaks
HTTPS on this port.

So https://127.0.0.1:8080 and i have my "hello" !

"It's alive !" ;)


-- 
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/webpy?hl=en.

Reply via email to