错误:java.security.cert.CertificateException:给定的域名非法:abc_xyz.stg.myweb.com [英] Error : java.security.cert.CertificateException: Illegal given domain name: abc_xyz.stg.myweb.com

查看:87
本文介绍了错误:java.security.cert.CertificateException:给定的域名非法:abc_xyz.stg.myweb.com的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我在调用api时发现以下异常

Hi team i found below exception when calling an api

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

java.security.cert.CertificateException:指定的域名非法

java.security.cert.CertificateException: Illegal given domain name

从使用Jersey的服务器获得响应时.当我收到邮递员的回复时,一切都很好.

when getting response from server using Jersey. Everything is fine when i get response from postman.

为什么它是非法域名,浏览器是否拒绝打开它.

Why it is illegal domain name, whether browser not refuse to open this.

如果我的域名不包含下划线,则此异常不会上升.这是域名下划线的问题吗?

If my domain name not contains underscore then this exception is not rising. Is this problem of underscore in domain name?

推荐答案

以防万一有人再次看到此问题.此问题是由于旧的jdk认为下划线作为子域名无效而引起的,该子域名在更高版本中已从jdk中删除.因此,简而言之,升级jdk版本将解决此问题.

In case anyone see this issue again. This issue is caused by an old jdk that thinks an underscore is invalid as the sub domain name, which in a later version has been removed from the jdk. So in short upgrade jdk version will solve this issue.

这篇关于错误:java.security.cert.CertificateException:给定的域名非法:abc_xyz.stg.myweb.com的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆