Hi,

I'm trying to do a HTTPSConnection to a server using a key and certificate:

Code:
import httplib
import sys

try:
    connection = httplib.HTTPSConnection(host, 443, key_file, cert_file)
    connection.request('GET', path)
    response = connection.getresponse()
    print response.status, response.reason
except:
    print sys.exc_type, sys.exc_value
connection.close()
When I try and run this I get the mesage:

'socket.error Unsupported feature' from the request() call. I can, however, make the HTTPS request without the key and certificate.

Looking through the source for httplib.py and socket.py I can't seem to find why this is unsupported.

Can anyone tell me if this can be done? (or what I'm doing wrong?)

Thanks.