Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #32361 > unrolled thread

Applying a paid third party ssl certificate

Started byehsmenggroups@gmail.com
First post2012-10-29 04:41 -0700
Last post2012-11-05 08:48 +0100
Articles 2 — 2 participants

Back to article view | Back to comp.lang.python


Contents

  Applying a paid third party ssl certificate ehsmenggroups@gmail.com - 2012-10-29 04:41 -0700
    Re: Applying a paid third party ssl certificate Dieter Maurer <dieter@handshake.de> - 2012-11-05 08:48 +0100

#32361 — Applying a paid third party ssl certificate

Fromehsmenggroups@gmail.com
Date2012-10-29 04:41 -0700
SubjectApplying a paid third party ssl certificate
Message-ID<afaa2df6-86f6-4616-af65-c8bd76557aa2@googlegroups.com>
Hi all,

I haven't quite figured out how to apply a paid ssl cert, say RapidSSL free SSL test from Python's recent sponsor sslmatrix.com and what to do with that to make Python happy.

This good fellow suggests using the PEM format. I tried and failed.
http://www.minnmyatsoe.com/category/python-2/

The self signed cert recepies found all work swell, but some browsers (webkit) gets very upset indeed. I want to use ajax requests from clients (e.g autocompletion, stats collection etc) and put that in a python program without hogging down the main apache stack, but without a proper ssl cert this doesn't work.

Does anyone have any ideas what to do?

Thanks,
Marcus

[toc] | [next] | [standalone]


#32758

FromDieter Maurer <dieter@handshake.de>
Date2012-11-05 08:48 +0100
Message-ID<mailman.3275.1352101737.27098.python-list@python.org>
In reply to#32361
ehsmenggroups@gmail.com writes:
> I haven't quite figured out how to apply a paid ssl cert, say RapidSSL free SSL test from Python's recent sponsor sslmatrix.com and what to do with that to make Python happy.
>
> This good fellow suggests using the PEM format. I tried and failed.
> http://www.minnmyatsoe.com/category/python-2/
>
> The self signed cert recepies found all work swell, but some browsers (webkit) gets very upset indeed. I want to use ajax requests from clients (e.g autocompletion, stats collection etc) and put that in a python program without hogging down the main apache stack, but without a proper ssl cert this doesn't work.
>
> Does anyone have any ideas what to do?

>From your description, I derive that you want
your client (python program) to autenticate itself via an
SSL certificate.

If my assumption is correct, I would start with a look at
the Python documentation for HTTPS connections.
When I remember right, they have 2 optional parameters
to specify a client certificate and to specify trusted
certificates (when server presented certificates should be verified).

Once, you have determined how to present the client certificate
for the base HTTPS connection, you may need to look at the documentation
or source code of higher level apis (such as "urllib2") to learn
how to pass on your certificate down to the real connection.

You may also have a look at "PyPI". You may find there packages
facilitating Python's "SSL" support.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web