Amazon Cloud (AWS)
EC2 & Teamcity / YouTrack & SSL
EC2 & Teamcity / YouTrack & SSL
After wasting hours on a cryptic error about a null trust store trying to connect from TeamCity to EC2, I figured out what the issue is. EC2 Amazon Linux images use the OpenJDK and not Suns / Oracle. Do not waste your time with the yum packages for Tomcat on EC2. Just download Tomcat and the JDK from Oracle's website and everything will be fine. I also suggest using mod_proxy reverse mappings to handle you SSL negotiation with Tomcat.
As a matter of fact, if your Java app has to make a client SSL call, do NOT use the OpenJDK!
Cryptic Error:
jetbrains.buildServer.clouds.amazon.AmazonCloudException: Amazon EC2 connection (profile 'AWS'{id=cp1}): java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty Ping failed
at jetbrains.buildServer.clouds.amazon.AmazonSyncClientImpl.catchEC2Exception(AmazonSyncClientImpl.java:231)
at jetbrains.buildServer.clouds.amazon.AmazonSyncClientImpl.ping(AmazonSyncClientImpl.java:200)
at jetbrains.buildServer.clouds.amazon.AmazonSyncClientImpl.