[英]How to decrypt AWS Windows password without using AWS SDK?
I deployed a windows machine on AWS with a key pair. 我在AWS上使用密钥对部署了一台Windows机器。 I want the windows administrator password.
我想要Windows管理员密码。
I got the windows encrypted password using: 我使用以下方法获得了Windows加密密码:
var myEC2GetPasswordDataResult = ec2Client2.getPasswordData(myEC2GetPasswordDataRequest);
myEC2GetPasswordDataResult = myEC2GetPasswordDataResult.withInstanceId("instanceID");
System.log( myEC2GetPasswordDataResult.toString());
myEC2GetPasswordDataResult.getPasswordData()
Now how can I decrypt this password? 现在我该怎么解密这个密码?
I tried many options with castlebouncy but none of them worked. 我尝试了许多选项与castlebouncy但没有一个工作。
If you don't want to use AWS SDK , another way to decrypt the password is to use OpenSSL. 如果您不想使用AWS SDK ,则解密密码的另一种方法是使用OpenSSL。
Here is the example using command-line: 以下是使用命令行的示例:
printf 'BASE64ENCODEDSTRING==' | openssl rsautl -decrypt -inkey mykey.pem
Related: Windows Password won't decrypt on AWS EC2 even with the correct private key . 相关: 即使使用正确的私钥,Windows密码也不会在AWS EC2上解密 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.