|
List Info
Thread: https
|
|
| https |
  United States |
2007-05-06 22:47:54 |
Hi,
I would like to serve content via https (CherryPy 3.0.1).
My config file:
[global]
server.socket_port = 8083
ssl_certificate =
"/usr/share/ssl/certs/ca-bundle.crt"
ssl_private_key = "chpy.pem"
It does not work:
[06/May/2007:23:27:28] HTTP Serving HTTP on http://0.0.0.0:8083/
* I may have not generated private key correctly. (I tried
several
different ways; generate other certificate, etc.)
* I might need something else, like pyOpenSSL...
Thanks for your help in advance,
Tamas
************************************************************
8
openssl req -new -x509 -nodes -out chpy.pem -keyout chpy.pem
-days
3650
Generating a 1024 bit RSA private key
.............++++++
.....++++++
writing new private key to 'chpy.pem'
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-users googlegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribe googlegroups.com
For more options, visit this group at h
ttp://groups.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: https |
  United States |
2007-05-07 10:25:26 |
On May 6, 8:47 pm, Tamas <biohege... gmail.com> wrote:
> I would like to serve content via https (CherryPy
3.0.1).
>
> My config file:
> [global]
> server.socket_port = 8083
> ssl_certificate =
"/usr/share/ssl/certs/ca-bundle.crt"
> ssl_private_key = "chpy.pem"
Try:
[global]
server.socket_port = 8083
server.ssl_certificate =
"/usr/share/ssl/certs/ca-bundle.crt"
server.ssl_private_key = "chpy.pem"
> * I might need something else, like pyOpenSSL...
Yes, you will need that. You can obtain it from http://pyopenssl.so
urceforge.net/
Robert Brewer
System Architect
Amor Ministries
fumanchu amor.org
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-users googlegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribe googlegroups.com
For more options, visit this group at h
ttp://groups.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: https |

|
2007-05-07 15:08:56 |
|
Thanks! But I have some more problems now. After correction of the config file and installing pyOpenSSL the server starts in https mode: [07/May/2007:15:04:02] HTTP Serving HTTPS on https://0.0.0.0:8083/
In firefox I get the err msg (approx): firefox and mycomputer:8083 can not communicate because they do not have the same encryption algorithm.
Cherrypy prints out the msg below.
Thanks again,
Tamas
Exception in thread CP WSGIServer Thread-5: Traceback (most recent call last): File "/usr/local/lib/python2.4/threading.py", line 442, in __bootstrap self.run() File "/usr/local/lib/python2.4/site-packages/cherrypy/wsgiserver/__init__.py", line 691, in run
conn.communicate() File "/usr/local/lib/python2.4/site-packages/cherrypy/wsgiserver/__init__.py", line 644, in communicate req.simple_response("500 Internal Server Error", format_exc())
File "/usr/local/lib/python2.4/site-packages/cherrypy/wsgiserver/__init__.py", line 392, in simple_response self.sendall("".join(buf)) File "/usr/local/lib/python2.4/site-packages/cherrypy/wsgiserver/__init__.py", line 512, in ssl_method_wrapper
raise socket.error(errno) error: 104
On 5/7/07, fumanchu < fumanchu amor.org">fumanchu amor.org> wrote:
On May 6, 8:47 pm, Tamas < biohege... gmail.com">biohege... gmail.com> wrote: > I would like to serve content via https (CherryPy 3.0.1). > > My config file: > [global]
> server.socket_port = 8083 > ssl_certificate = "/usr/share/ssl/certs/ca-bundle.crt" > ssl_private_key = "chpy.pem"
Try:
[global] server.socket_port = 8083
server.ssl_certificate = "/usr/share/ssl/certs/ca-bundle.crt" server.ssl_private_key = "chpy.pem"
> * I might need something else, like pyOpenSSL...
Yes, you will need that. You can obtain it from
http://pyopenssl.sourceforge.net/
Robert Brewer System Architect Amor Ministries fumanchu amor.org">fumanchu amor.org
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "cherrypy-users" group. To post to this group, send email to cherrypy-users googlegroups.com To unsubscribe from this group, send email to cherrypy-users-unsubscribe googlegroups.com For more options, visit this group at http://groups.google.com/group/cherrypy-users?hl=en -~----------~----~----~----~------~----~------~--~---
|
| Re: https |
  United States |
2007-05-12 22:09:34 |
Hello,
First check the url hostname and hostname for the SSL key
generated.
They
must be the same...
On 7 mai, 22:08, "Tamas Hegedus"
<biohege... gmail.com> wrote:
> Thanks! But I have some more problems now.
> After correction of the config file and installing
pyOpenSSL the server
> starts in https mode:
> [07/May/2007:15:04:02] HTTP Serving HTTPS onhttps://0.0.0.0:8083/
>
> In firefox I get the err msg (approx): firefox and
mycomputer:8083 can not
> communicate because they do not have the same
encryption algorithm.
>
> Cherrypy prints out the msg below.
>
> Thanks again,
> Tamas
>
> Exception in thread CP WSGIServer Thread-5:
> Traceback (most recent call last):
> File
"/usr/local/lib/python2.4/threading.py", line 442,
in __bootstrap
> self.run()
> File
>
"/usr/local/lib/python2.4/site-packages/cherrypy/wsgise
rver/__init__.py",
> line 691, in run
> conn.communicate()
> File
>
"/usr/local/lib/python2.4/site-packages/cherrypy/wsgise
rver/__init__.py",
> line 644, in communicate
> req.simple_response("500 Internal Server
Error", format_exc())
> File
>
"/usr/local/lib/python2.4/site-packages/cherrypy/wsgise
rver/__init__.py",
> line 392, in simple_response
> self.sendall("".join(buf))
> File
>
"/usr/local/lib/python2.4/site-packages/cherrypy/wsgise
rver/__init__.py",
> line 512, in ssl_method_wrapper
> raise socket.error(errno)
> error: 104
>
> On 5/7/07, fumanchu <fuman... amor.org> wrote:
>
>
>
> > On May 6, 8:47 pm, Tamas <biohege... gmail.com> wrote:
> > > I would like to serve content via https
(CherryPy 3.0.1).
>
> > > My config file:
> > > [global]
> > > server.socket_port = 8083
> > > ssl_certificate =
"/usr/share/ssl/certs/ca-bundle.crt"
> > > ssl_private_key = "chpy.pem"
>
> > Try:
>
> > [global]
> > server.socket_port = 8083
> > server.ssl_certificate =
"/usr/share/ssl/certs/ca-bundle.crt"
> > server.ssl_private_key = "chpy.pem"
>
> > > * I might need something else, like
pyOpenSSL...
>
> > Yes, you will need that. You can obtain it from
> >http://pyopenssl.so
urceforge.net/
>
> > Robert Brewer
> > System Architect
> > Amor Ministries
> > fuman... amor.org
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-users googlegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribe googlegroups.com
For more options, visit this group at h
ttp://groups.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: https |

|
2007-05-19 10:11:36 |
|
Thanks! The ssl key was not generated correctly...
On 5/12/07, Julien < julien.hautefeuille gmail.com">julien.hautefeuille gmail.com
> wrote: Hello,
First check the url hostname and hostname for the SSL key generated.
They must be the same...
On 7 mai, 22:08, "Tamas Hegedus" < biohege... gmail.com">biohege... gmail.com> wrote: > Thanks! But I have some more problems now. > After correction of the config file and installing pyOpenSSL the server
> starts in https mode: > [07/May/2007:15:04:02] HTTP Serving HTTPS onhttps://0.0.0.0:8083/ > > In firefox I get the err msg (approx): firefox and mycomputer:8083 can not > communicate because they do not have the same encryption algorithm.
> > Cherrypy prints out the msg below. > > Thanks again, > Tamas > > Exception in thread CP WSGIServer Thread-5: > Traceback (most recent call last): > File "/usr/local/lib/python2.4/threading.py", line 442, in __bootstrap
> self.run() > File > "/usr/local/lib/python2.4/site-packages/cherrypy/wsgiserver/__init__.py", > line 691, in run > conn.communicate() > File > "/usr/local/lib/python2.4/site-packages/cherrypy/wsgiserver/__init__.py",
> line 644, in communicate > req.simple_response("500 Internal Server Error", format_exc()) > File > "/usr/local/lib/python2.4/site-packages/cherrypy/wsgiserver/__init__.py",
> line 392, in simple_response > self.sendall("".join(buf)) > File > "/usr/local/lib/python2.4/site-packages/cherrypy/wsgiserver/__init__.py", > line 512, in ssl_method_wrapper
> raise socket.error(errno) > error: 104 > > On 5/7/07, fumanchu < fuman... amor.org">fuman... amor.org> wrote: > > > > > On May 6, 8:47 pm, Tamas <
biohege... gmail.com">biohege... gmail.com> wrote: > > > I would like to serve content via https (CherryPy 3.0.1). > > > > My config file: > > > [global]
> > > server.socket_port = 8083 > > > ssl_certificate = "/usr/share/ssl/certs/ca-bundle.crt" > > > ssl_private_key = "chpy.pem" > > > Try: >
> > [global] > > server.socket_port = 8083 > > server.ssl_certificate = "/usr/share/ssl/certs/ca-bundle.crt" > > server.ssl_private_key = "chpy.pem" >
> > > * I might need something else, like pyOpenSSL... > > > Yes, you will need that. You can obtain it from > >http://pyopenssl.sourceforge.net/
> > > Robert Brewer > > System Architect > > Amor Ministries > > fuman... amor.org">fuman... amor.org
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "cherrypy-users" group. To post to this group, send email to cherrypy-users googlegroups.com To unsubscribe from this group, send email to cherrypy-users-unsubscribe googlegroups.com For more options, visit this group at http://groups.google.com/group/cherrypy-users?hl=en -~----------~----~----~----~------~----~------~--~---
|
[1-5]
|
|