List Info

Thread: https




https
country flaguser name
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-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at h
ttp://groups.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: https
country flaguser name
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
fumanchuamor.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-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at h
ttp://groups.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: https
user name
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):
&nbsp; File "/usr/local/lib/python2.4/threading.py", line 442, in __bootstrap
 &nbsp;  self.run()
  File "/usr/local/lib/python2.4/site-packages/cherrypy/wsgiserver/__init__.py", line 691, in run
&nbsp; &nbsp; conn.communicate()
&nbsp; File "/usr/local/lib/python2.4/site-packages/cherrypy/wsgiserver/__init__.py", line 644, in communicate
 &nbsp;  req.simple_response(&quot;500 Internal Server Error";, format_exc())
 ; File "/usr/local/lib/python2.4/site-packages/cherrypy/wsgiserver/__init__.py", line 392, in simple_response
 ; &nbsp; self.sendall("&quot;.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 < fumanchuamor.org">fumanchuamor.org&gt; 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).
&gt;
> My config file:
> [global]
> server.socket_port = 8083
> ssl_certificate   ;  = "/usr/share/ssl/certs/ca-bundle.crt&quot;
> ssl_private_key   ; = "chpy.pem"

Try:

[global]
server.socket_port = 8083
server.ssl_certificate&nbsp; &nbsp;  = "/usr/share/ssl/certs/ca-bundle.crt&quot;
server.ssl_private_key &nbsp;  = "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
fumanchuamor.org">fumanchuamor.org

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "cherrypy-users&quot; group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Re: https
country flaguser name
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-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at h
ttp://groups.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: https
user name
2007-05-19 10:11:36
Thanks!
The ssl key was not generated correctly...

On 5/12/07, Julien < julien.hautefeuillegmail.com">julien.hautefeuillegmail.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&quot; < 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
&gt; 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):
>; &nbsp; File "/usr/local/lib/python2.4/threading.py", line 442, in __bootstrap
>&nbsp; &nbsp;  self.run()
  File
> "/usr/local/lib/python2.4/site-packages/cherrypy/wsgiserver/__init__.py",
>; line 691, in run
>&nbsp; &nbsp;  conn.communicate()
&gt; &nbsp; File
> "/usr/local/lib/python2.4/site-packages/cherrypy/wsgiserver/__init__.py",
&gt; line 644, in communicate
; &nbsp;  req.simple_response(&quot;500 Internal Server Error";, format_exc())
>&nbsp;  File
> "/usr/local/lib/python2.4/site-packages/cherrypy/wsgiserver/__init__.py",
&gt; line 392, in simple_response
>&nbsp;   ; self.sendall("&quot;.join(buf))
>&nbsp;  File
> "/usr/local/lib/python2.4/site-packages/cherrypy/wsgiserver/__init__.py",
>; line 512, in ssl_method_wrapper
> &nbsp;   raise socket.error(errno)
&gt; error: 104
>
&gt; On 5/7/07, fumanchu < fuman...amor.org">fuman...amor.org&gt; 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).
&gt;
> > > My config file:
> > > [global]
> > > server.socket_port = 8083
> > > ssl_certificate   ;  = "/usr/share/ssl/certs/ca-bundle.crt&quot;
> > > ssl_private_key   ; = "chpy.pem"
>
> > Try:
>
> > [global]
&gt; > server.socket_port = 8083
> > server.ssl_certificate &nbsp; &nbsp; = "/usr/share/ssl/certs/ca-bundle.crt&quot;
> > server.ssl_private_key &nbsp; &nbsp;= "chpy.pem"
>
> > > * I might need something else, like pyOpenSSL...
>
>; > Yes, you will need that. You can obtain it from
> >http://pyopenssl.sourceforge.net/
>
&gt; > 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&quot; group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---

[1-5]

about | contact  Other archives ( Real Estate discussion Medical topics )