i got the error. I sniffed the transfered traffic (to an non-cloud http server) and noticed that the transferred public_key_material is the base64 encoded _filename_ of the public key, not the base64 encoded _content_ of the file.
In the method "import_key_pair(self, key_name, public_key_material)" in the file /usr/share/pyshared/boto/ec2/connection.py the public_key_material is base64 encoded, i checked by printing the value of the variable.
i got the error. I sniffed the transfered traffic (to an non-cloud http server) and noticed that the transferred public_key_material is the base64 encoded _filename_ of the public key, not the base64 encoded _content_ of the file.
In the method "import_ key_pair( self, key_name, public_ key_material) " in the file /usr/share/ pyshared/ boto/ec2/ connection. py the public_key_material is base64 encoded, i checked by printing the value of the variable.