M2Crypto: How to check server certificate?

Hallvard B Furuseth (nospam nospam) h.b.furuseth at usit.uio.no
Sun Jul 6 11:16:43 EDT 2003


Does anyone know how I check the server certificate with M2Crypto?
Currently a program I have inherited does this:

    #!/local/bin/python2.2
    import xmlrpclib
    from M2Crypto.m2xmlrpclib import Server, SSL_Transport
    svr = Server('http://my.machine.no:8000',
                 SSL_Transport(), encoding='iso8859-1')
    # TODO: check server certificate
    secret = svr.login('myuser', 'mypassword')

-- 
Hallvard




More information about the Python-list mailing list