We wish to buy a wild-card SSL certificate as we have a lot of sub-domains. However I don\'t know if Java trusts wild-card certificates. As people connect into our API via S
The default implementation in Sun's JSSE doesn't support wildcard. You need to write your own X509TrustManager to handle wildcard.
However, Java supports SAN (Subject Alternative Names) since Java 5. If you have less than 20 names, you can get one certificate for all of them. It may be cheaper than a wildcard cert.