Created
November 14, 2011 13:35
-
-
Save jeffmaury/1363963 to your computer and use it in GitHub Desktop.
ec2-host traces with certificate handling
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'),))} |
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
Have you had a chance to work around this somehow?