I was rotating my AWS X.509 certificate and private key (not to be confused with ssh private / public key pair) today and decided I wanted to set a pass-phrase on my private key to better protect it. So I did a bit of research and ran :
openssl rsa -in awsprivatekey.pem -des3 -out awsprivatekey.pem.new
and entered a pass-phrase for the private key. After I attempted to use the ec2 api tools I got an error :
java.io.IOException: DER length more than 4 bytes
This became obvious when I researched the topic and found out this link ec2 api tools don't support a private key with a password
I'm troubled by the lack of information about this and the status-quo of having un-protected private keys with something as crucial as Amazon EC2.
Any suggestions on how to better protect my private key?