Hi Mitchell,
I tried the save() method but it is not working for me. Maybe because
I use the Google App Engine SDK. This is my code:
neuer_key = conn_region.create_key_pair(neuerkeyname)
neuer_key.save("/tmp/tmp.pem")
It leads to this error.
Traceback (most recent call last):
File "/home/bauni/Google_AppEngine/google_appengine/google/appengine/
ext/webapp/__init__.py", line 509, in __call__
handler.post(*groups)
File "/home/bauni/Google_AppEngine/koala2/change.py", line 452, in
post
neuer_key.save("/tmp/tmp.pem")
File "/home/bauni/Google_AppEngine/koala2/boto/ec2/keypair.py", line
82, in save
fp = open(file_path, 'wb')
File "/home/bauni/Google_AppEngine/google_appengine/google/appengine/
tools/dev_appserver.py", line 1116, in __init__
raise IOError('invalid mode: %s' % mode)
IOError: invalid mode: wb
Is there no way to send the pem-file to the browser?
Best Regards,
Christian