Error : java.security.cert.CertificateException: Illegal given domain name: abc_xyz.stg.myweb.com

后端 未结 3 1926
温柔的废话
温柔的废话 2020-12-21 03:38

Hi team i found below exception when calling an api

https://abc_xyz.stg.myweb.com/api/AuthorizedUser?username=admin&password=admin

ja

3条回答
  •  青春惊慌失措
    2020-12-21 04:33

    I had the same issue, and couldn't update jdk nor wanted disable ssl host name verification. Changing the underscore character in the name to a dash ('-' instead of '_') worked perfectly. Apparently dash and underscore are evaluated the same.

提交回复
热议问题