I managed to find a workaround on this using the following as the connection call:
def getEC2Connection(self):
return boto.connect_ec2(self._key, self._sec, validate_certs=False)
and forcing the validate_certs = False.
I understand why the statement works, but what I still do not understand why validate_certs =True does not run from GAE, but works fine from local servers and from AWS.
Perhaps something needs to be installed within my GAE deployment to correct this?
-Rob
On Wednesday, November 7, 2012 5:43:40 PM UTC-5, Robert H. Mowery III wrote:
I am attempting to test a python app running on GAE that uses boto to hit AWS. This application works fine running from a local environment and if I place it onto an Linux machine on AWS. Google App Engine however keeps spewing out the following error:
"SSL server certificate validation is enabled in boto "
BotoClientError: BotoClientError: SSL server certificate validation is enabled in boto configuration, but Python dependencies required to support this feature are not available. Certificate validation is only supported when running under Python 2.6 or later.
Now my app.yml file specifically has Python2.7 stated:
runtime: python27
api_version: 1
Searching around the only suggestion I found (which does not seem to work) is placing this chunk of code into my app.
config = boto.config
config.add_section('boto')
config.set('boto','https_validate_certificates', 'False')
config.add_section('aws info')
config.set('aws info','aws_validate_certs','False')
How are others getting boto to run from GAE? Is this an issue between going from GAE to AWS with boto?
Appreciate any advice, suggestions, or links to posts I may have overlooked.
-Rob