Skip to content

Instantly share code, notes, and snippets.

@jeffmaury
Created November 14, 2011 13:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeffmaury/1363963 to your computer and use it in GitHub Desktop.
Save jeffmaury/1363963 to your computer and use it in GitHub Desktop.
ec2-host traces with certificate handling
Traceback (most recent call last):
File "/usr/local/bin/ec2-host", line 5, in <module>
pkg_resources.run_script('ec2-ssh==1.0', 'ec2-host')
File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/pkg_resources.py", line 442, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/pkg_resources.py", line 1167, in run_script
exec script_code in namespace, namespace
File "/Library/Python/2.6/site-packages/ec2_ssh-1.0-py2.6.egg/EGG-INFO/scripts/ec2-host", line 113, in <module>
File "/Library/Python/2.6/site-packages/ec2_ssh-1.0-py2.6.egg/EGG-INFO/scripts/ec2-host", line 103, in main
File "/Library/Python/2.6/site-packages/ec2_ssh-1.0-py2.6.egg/EGG-INFO/scripts/ec2-host", line 32, in list_instances
File "/Library/Python/2.6/site-packages/ec2_ssh-1.0-py2.6.egg/EGG-INFO/scripts/ec2-host", line 58, in ec2_instances
File "/Library/Python/2.6/site-packages/boto-2.1.1-py2.6.egg/boto/ec2/connection.py", line 464, in get_all_instances
[('item', Reservation)], verb='POST')
File "/Library/Python/2.6/site-packages/boto-2.1.1-py2.6.egg/boto/connection.py", line 848, in get_list
response = self.make_request(action, params, path, verb)
File "/Library/Python/2.6/site-packages/boto-2.1.1-py2.6.egg/boto/connection.py", line 834, in make_request
return self._mexe(http_request)
File "/Library/Python/2.6/site-packages/boto-2.1.1-py2.6.egg/boto/connection.py", line 750, in _mexe
raise e
boto.https_connection.InvalidCertificateException: Host ec2.amazonaws.com returned an invalid certificate (remote hostname "ec2.amazonaws.com" does not match certificate): {'notAfter': 'Oct 7 23:59:59 2013 GMT', 'subject': ((('countryName', u'US'),), (('stateOrProvinceName', u'Washington'),), (('localityName', u'Seattle'),), (('organizationName', u'Amazon.com Inc.'),), (('commonName', u'ec2.us-east-1.amazonaws.com'),))}
@jezdez
Copy link

jezdez commented Jan 29, 2012

Have you had a chance to work around this somehow?

@jeffmaury
Copy link
Author

Yes, I simply deleted the $HOME/.boto file.
If you don't want, you must have https_validate_certificates = False in the boto section

Jeff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment