I spent several hours scouring the internet looking for a way to import (OpenSSL) Amazon EC2's .pem keypair into a Java keystore. At the end of this frustrating exercise I was baffled to see how scattered the information was.
(FYI, doing this on Windows, especially the OpenSSL interaction part, for self-signing a certificate was painful even with Cygwin. I had to resort to using my Linux distro running in a VM)
To save myself time in the future and for those of you tearing your hair out looking for the same information, here it is. (The file paths are not real. You have to clean them up to match your setup):
Here are my references in no particular order:
- http://stackoverflow.com/questions/2813843/possible-reasons-for-timeout-when-trying-to-access-ec2-instance
- https://forums.aws.amazon.com/message.jspa?messageID=334402
- https://confluence.atlassian.com/display/JIRA/Connecting+to+SSL+services
- http://www.agentbob.info/agentbob/79-AB.html
- http://www.startux.de/java/44-dealing-with-java-keystores
- http://codeartisan.blogspot.com/2009/05/public-key-cryptography-in-java.html
- http://wiki.eclipse.org/Generating_a_Private_Key_and_a_Keystore
- http://stackoverflow.com/questions/2484026/import-pem-public-and-private-keys-to-jks-keystore
- http://www.akadia.com/services/ssh_test_certificate.html
- http://blog.taggesell.de/?/archives/73-Managing-Amazon-EC2-SSH-login-and-protecting-your-instances.html
- http://dotnetbutchering.blogspot.com/2011/07/how-to-ssh-into-amazon-ec2-linux.html
- http://stackoverflow.com/questions/8193768/trying-to-ssh-into-an-amazon-ec2-instance-permission-error
- https://help.ubuntu.com/community/EC2StartersGuide#Official_Ubuntu_Cloud_Guest_Amazon_Machine_Images_.28AMIs.29
- https://www.openshift.com/page/install-and-setup-putty-ssh-client-for-windows
Ashwin.
0 comments:
Post a Comment