Re: bad certificate error

2009-07-29 Thread John Nagle
jakecjacobson wrote: Hi, I am getting the following error when doing a post to REST API, Enter PEM pass phrase: Traceback (most recent call last): File "./ices_catalog_feeder.py", line 193, in ? main(sys.argv[1]) File "./ices_catalog_feeder.py", line 60, in main post2Catalog(catalog

Re: bad certificate error

2009-07-29 Thread jakecjacobson
On Jul 29, 2:08 am, "Gabriel Genellina" wrote: > En Tue, 28 Jul 2009 09:02:40 -0300, Steven D'Aprano   > escribió: > > > > > On Mon, 27 Jul 2009 23:16:39 -0300, Gabriel Genellina wrote: > > >> I don't see the point on "fixing" either the Python script or httplib to > >> accomodate for an invalid

Re: bad certificate error

2009-07-28 Thread Gabriel Genellina
En Tue, 28 Jul 2009 09:02:40 -0300, Steven D'Aprano escribió: On Mon, 27 Jul 2009 23:16:39 -0300, Gabriel Genellina wrote: I don't see the point on "fixing" either the Python script or httplib to accomodate for an invalid server certificate... If it's just for internal testing, I'd use HTTP i

Re: bad certificate error

2009-07-28 Thread Nobody
On Tue, 28 Jul 2009 21:44:05 +0200, Piet van Oostrum wrote: >>j># cert_file is a PEM formatted certificate chain file. >>j>connection = httplib.HTTPSConnection(host, int(port), key_file, >>j> cert_file) > > What happens if you set cert_file to None? This would indicate tha

Re: bad certificate error

2009-07-28 Thread Piet van Oostrum
> jakecjacobson (j) wrote: >j> On Jul 28, 9:48 am, Jean-Paul Calderone wrote: >>> On Tue, 28 Jul 2009 03:35:55 -0700 (PDT), jakecjacobson >>> wrote: >>> > [snip] >>> >>> >"Invalid how?  Self signed certificate? Domain mismatch? Expired >>> >certificate?"  It is a server name mismatch. >>>

Re: bad certificate error

2009-07-28 Thread jakecjacobson
On Jul 28, 9:48 am, Jean-Paul Calderone wrote: > On Tue, 28 Jul 2009 03:35:55 -0700 (PDT), jakecjacobson > wrote: > > [snip] > > >"Invalid how?  Self signed certificate? Domain mismatch? Expired > >certificate?"  It is a server name mismatch. > > Python 2.4 is not capable of allowing you to cust

Re: bad certificate error

2009-07-28 Thread Jean-Paul Calderone
On Tue, 28 Jul 2009 03:35:55 -0700 (PDT), jakecjacobson wrote: [snip] "Invalid how? Self signed certificate? Domain mismatch? Expired certificate?" It is a server name mismatch. Python 2.4 is not capable of allowing you to customize this verification behavior. It is hard coded to let Open

Re: bad certificate error

2009-07-28 Thread Nick Craig-Wood
jakecjacobson wrote: > > >  If I go to this server in my browser, I get a "This server tried to > > >  identify itself with invalid information".  Is there a way to > > >  ignore this issue with Python?  Can I setup a trust store and add > > >  this server to the trust store? > > > > Invalid how?

Re: bad certificate error

2009-07-28 Thread Steven D'Aprano
On Mon, 27 Jul 2009 23:16:39 -0300, Gabriel Genellina wrote: > I don't see the point on "fixing" either the Python script or httplib to > accomodate for an invalid server certificate... If it's just for > internal testing, I'd use HTTP instead (at least until the certificate > is fixed). In real

Re: bad certificate error

2009-07-28 Thread jakecjacobson
On Jul 28, 3:29 am, Nick Craig-Wood wrote: > jakecjacobson wrote: > >  I am getting the following error when doing a post to REST API, > > >  Enter PEM pass phrase: > >  Traceback (most recent call last): > >    File "./ices_catalog_feeder.py", line 193, in ? > >      main(sys.argv[1]) > >    Fil

Re: bad certificate error

2009-07-28 Thread Nick Craig-Wood
jakecjacobson wrote: > I am getting the following error when doing a post to REST API, > > Enter PEM pass phrase: > Traceback (most recent call last): >File "./ices_catalog_feeder.py", line 193, in ? > main(sys.argv[1]) >File "./ices_catalog_feeder.py", line 60, in main > pos

Re: bad certificate error

2009-07-27 Thread Gabriel Genellina
En Mon, 27 Jul 2009 20:00:27 -0300, Steven D'Aprano escribió: On Mon, 27 Jul 2009 15:23:41 -0300, Gabriel Genellina wrote: En Mon, 27 Jul 2009 12:57:40 -0300, jakecjacobson escribió: I was wondering if this is due to the server having a invalid server cert? If I go to this server in my brow

Re: bad certificate error

2009-07-27 Thread Gabriel Genellina
En Mon, 27 Jul 2009 15:52:08 -0300, jakecjacobson escribió: On Jul 27, 2:23 pm, "Gabriel Genellina" wrote: En Mon, 27 Jul 2009 12:57:40 -0300, jakecjacobson   escribió: > I was wondering if this is due to the server having a invalid server > cert?  If I go to this server in my browser, I

Re: bad certificate error

2009-07-27 Thread Steven D'Aprano
On Mon, 27 Jul 2009 15:23:41 -0300, Gabriel Genellina wrote: > En Mon, 27 Jul 2009 12:57:40 -0300, jakecjacobson > escribió: > >> I was wondering if this is due to the server having a invalid server >> cert? If I go to this server in my browser, I get a "This server tried >> to identify itself

Re: bad certificate error

2009-07-27 Thread jakecjacobson
On Jul 27, 2:23 pm, "Gabriel Genellina" wrote: > En Mon, 27 Jul 2009 12:57:40 -0300, jakecjacobson   > escribió: > > > I was wondering if this is due to the server having a invalid server > > cert?  If I go to this server in my browser, I get a "This server > > tried to identify itself with inval

Re: bad certificate error

2009-07-27 Thread Gabriel Genellina
En Mon, 27 Jul 2009 12:57:40 -0300, jakecjacobson escribió: I was wondering if this is due to the server having a invalid server cert? If I go to this server in my browser, I get a "This server tried to identify itself with invalid information". Is there a way to ignore this issue with Pyth

bad certificate error

2009-07-27 Thread jakecjacobson
Hi, I am getting the following error when doing a post to REST API, Enter PEM pass phrase: Traceback (most recent call last): File "./ices_catalog_feeder.py", line 193, in ? main(sys.argv[1]) File "./ices_catalog_feeder.py", line 60, in main post2Catalog(catalog_host, catalog_port, ca