Vineet, You may find this information useful - it's a blog post I made a couple years back, and it explains how to get the encrypted password and then decrypt it to a plain text password, using your key: http://www.frontiertown.co.uk/2012/03/java-administrator-password-windows-ec2-instance/
It's written against the official AWS EC2 Java SDK, but it should be a simple process to change it to use the jclouds API instead. You may also find this post useful, if you want to use SSH on your Windows instances without needing the Administrator password or having to build a custom image: http://www.frontiertown.co.uk/2013/10/ssh-amazon-ec2-windows-servers/ Richard. On 8 July 2014 23:32, Andrew Phillips <[email protected]> wrote: >> account to use it to encrypt new windows password rather than generating >> new keypair for encryption? > > > You should be able to get a TemplateOptions object from the ComputeService. > Since your underlying API is EC2, you can cast this to an EC2TemplateOptions > instance (computeService.templateOptions().as(EC2TemplateOptions.class)) as > then specify the desired key pair [1]. > > Regards > > ap > > [1] > http://javadocs.jclouds.cloudbees.net/org/jclouds/ec2/compute/options/EC2TemplateOptions.html#keyPair(java.lang.String)
