Openfire and wildcard certificate

Hi,

Is there an issue in openfire 3.10.3 that it cannot handle wildcard certificates as a client?
Openfire is trying to connect (via HTTPS) to a server that deploys wildcard cert but the connection fails with the following error:
javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: subject/issuer verification failed of [.mydomain.com]
Caused by: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: subject/issuer verification failed of [
.mydomain.com]
Caused by: java.security.cert.CertificateException: subject/issuer verification failed of [*.mydomain.com]

The truststore set is: xmpp.socket.ssl.client.truststore /opt/openfire/resources/security/truststore.

The truststore has the required CA certs. But still the connection is failing.
Is there a different truststore openfire uses when it connects to a server?

What could be the cause of the issue?

Thanks,
Soa