[pyOpenSSL] 'internal error' on 0.5.1
Yannick Gingras
yannick.gingras at savoirfairelinux.com
Wed Jul 30 16:08:17 CEST 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On July 30, 2003 08:05 am, you wrote:
> For my application, I created a class sslTransport and used this in
> creating the server object.
>
> class sslTransport(xmlrpclib.SafeTransport):
> """Enables ssl transport with client certificates."""
>
> def __init__(self, x509):
> """Added to enable client SSL certificates."""
> self.x509 = x509
>
> def make_connection(self, host):
> """Extended to include x509 certificate."""
> return xmlrpclib.SafeTransport.make_connection(self, (host,
> self.x509))
>
>
> And the client code:
>
> x509 = {'key_file': 'client.pkey',
> 'cert_file':'client.cert'}
>
> server = xmlrpclib.ServerProxy('https://host:port',
> sslTransport(x509))
This works great if you want to supply a custom client certificate.
What I try to do is to check the signature of the peer certificate
against our CA. Ever done this in Python ?
Thanks for your time !
- --
Yannick Gingras
Byte Gardener, Savoir-faire Linux inc.
(514) 276-5468
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE/J9FRrhy5Fqn/MRARAuQOAJ96EBzFTKAYQ6Q1TaJkQj0ztV9FawCfZqAo
pb2UiVvVds29LWzKke1jAeg=
=MYHc
-----END PGP SIGNATURE-----
More information about the pyopenssl-users
mailing list