Configuring boto to validate HTTPS certificates
We strongly recommend upgrading from boto to boto3, the latest major version of the AWS SDK for Python. The previous major version, boto, does not default to validating HTTPS certificates for Amazon S3 when you are:
- Using a Python version less than 2.7.9 or
- Using Python 2.7.9 or greater and are connecting to S3 through a proxy
Truein your boto config file. For more information on how to use the boto config file, please refer to its documentation, or
Truewhen instantiating an
>>> from boto.s3.connection import S3Connection >>> conn = S3Connection(validate_certs=True)
To get the best experience, we always recommend remaining up-to-date with the latest version of the AWS SDKs and runtimes.