I am trying to connect to an external server using an SSL connection with a client certificate from my EC2 instance. So the external server has issued me a SSL certificate, I load this in my (java) web application and use it to create an outbound SSL connection from my EC2 instance to the external server.
This all works fine in development, but once running on EC2 (SUSE Linux Enterprise 11 SP1), I get the following error.
javax.net.ssl.SSLException: HelloRequest followed by an unexpected handshake message
I'm wondering whether theres any special configuration or something required on Suse Linux or EC2 in general to allow my java application to connect to an external service with a SSL client certificate?
I was thinking firewalls etc. I tried turning off the firewall using:
/etc/init.d/SuSEfirewall2_setup stop
but no luck. I'm sure this is a easy fix, but I have no idea what the problem is.