code: def _connect_secureish(*args, **kwargs):
      
      if tuple(int(x) for x in boto.__version__.split('.')) >= (2, 6, 0):
          kwargs['validate_certs'] = True
  
      kwargs['is_secure'] = True
  
      auth_region_name = kwargs.pop('auth_region_name', None)
      conn = connection.S3Connection(*args, **kwargs)
  
      if auth_region_name:
          conn.auth_region_name = auth_region_name
  
      return conn
docs: Connect using the safest available options.
  
      This turns on encryption (works in all supported boto versions)
      and certificate validation (in the subset of supported boto
      versions that can handle certificate validation, namely, those
      after 2.6.0).
  
      Versions below 2.6 don't support the validate_certs option to
      S3Connection, and enable it via configuration option just seems to
      cause an error.