Can Java connect to wildcard ssl

前端 未结 2 1591
无人共我
无人共我 2021-01-12 07:20

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

2条回答
  •  梦毁少年i
    2021-01-12 07:39

    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.

提交回复
热议问题