Random Notes‎ > ‎

Decrypting Amazon EC2 Windows Password

posted Apr 16, 2013, 4:41 PM by William Shallum   [ updated Apr 16, 2013, 4:42 PM ]
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...