IMHO, casServerName should be casClientServerName (I would open a JIRA for this)
I think your problem is due to a SSL misleading configuration.
Did you generate a SSL certificate with correct hostname?
Have you been using a truststore?
Please, take a look at: http://docs.jboss.org/jbportal/sso/html_single/
Let me know if you need a further assistance.
Joao Paulo Viragine
You are right. The problem is in SSL sertificate. I have add my CA cert to $JAVA_HOME/jre/lib/security/cacerts and the problem is solved.
+1 to confusing name of casServerName attribute. Maybe it could be casClientServer? Because I think it's not only about server name but server port too.