Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > https client certificate validation

Reply
Thread Tools

https client certificate validation

 
 
Yogesh Chawla - PD
Guest
Posts: n/a
 
      10-24-2006
Hello All,
I work for the State of Wisconsin and we are trying to
build a reference implementation using python. Our
goals are this:

1) establish an HTTPS connection between our client
and ourselves

2) exchange client and server certificates to perform
mutual authentication

We only need to write the client in python. The
client should check the server certificate, verify
that the date range and common name are valid. Then
it should confirm that the server certificate is valid
according to a Certificate Revocation List.

After writing a basic script using HTTPSConnection, I
found this in the docs:

Warning: This does not do any certificate
verification!

I then tried to do the same using twisted, m2crypto
and a few other projects.

I am really hitting a wall here. Can anyone point me
in the right direction? I have a client cert, private
key and url I am trying to hit. How can I fulfill the
requirements I have above using python? I have done
most of this in Java, but we would prefer a python
implementation to distribute.

Thanks,
Yogesh Chawla
 
Reply With Quote
 
 
 
 
Heikki Toivonen
Guest
Posts: n/a
 
      10-25-2006
Yogesh Chawla - PD wrote:
> After writing a basic script using HTTPSConnection, I
> found this in the docs:
>
> Warning: This does not do any certificate
> verification!


Right, for production you use almost certainly need to use some 3rd
party SSL library, of which there are several.

> I then tried to do the same using twisted, m2crypto
> and a few other projects.


M2Crypto does support client certificate validation, so I am a bit at a
loss what problem you are facing. There is even a unit test that does
mutual authentication:
http://lxr.osafoundation.org/m2crypt...est_ssl.py#478

--
Heikki Toivonen
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Authenticating to web service using https and client certificate jakecjacobson Python 0 06-23-2009 01:17 PM
LWP https and client certificate Zorba Perl 0 06-04-2004 10:27 PM
Error when trying to connect over HTTPS using a client certificate. Subra Mallampalli ASP .Net 0 10-02-2003 09:53 PM
Error when trying to connect over HTTPS using a client certificate. Subra Mallampalli ASP .Net Security 0 10-02-2003 09:53 PM
Error when trying to connect over HTTPS using a client certificate. Subra Mallampalli ASP .Net 0 10-02-2003 07:22 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57