William Shallum

Decrypting Amazon EC2 Windows Password

Posted Apr 16 2013, 23:41 by William Shallum [updated Apr 16 2013, 23:42]

If you have OpenSSL, open system log in web console (“get system log”) then copy the data between “<password>” tags. Use as input to this pipeline:

base64 -d | openssl pkeyutl -decrypt -inkey your.key.here

base64 is GNU coreutils base64. Openssl enc -base64 does not work since (I think) the data is not properly wrapped.

Alternatively you can just use “get windows password” and paste your plaintext private key there. I think that totally defeats the purpose of having a key pair…