bad certificate error

Nobody nobody at
Tue Jul 28 20:45:08 EDT 2009

On Tue, 28 Jul 2009 21:44:05 +0200, Piet van Oostrum wrote:

>>j> 		# cert_file is a PEM formatted certificate chain file.
>>j> 		connection = httplib.HTTPSConnection(host, int(port), key_file,
>>j> cert_file)
> What happens if you set cert_file to None? This would indicate that you
> are not interested in the server's certificate.
> By the way, is the cert_file you supply the certificate of the CA that
> signed the server's cert (in contrast to yours)?

The cert_file parameter is the client certificate. You must provide
either both key_file and cert_file, or neither.

More information about the Python-list mailing list