简体   繁体   English

HTTPS主机名错误:应为 <xxx.xxx.xxx.xxx> ,请检查URL欺骗。 传递的主机名是什么?

[英]HTTPS hostname wrong: should be <xxx.xxx.xxx.xxx>, checkURLSpoofing. What is the host name being passed?

The error I am receiving is 我收到的错误是

com.sun.xml.ws.client.ClientTransportException: HTTP transport error: java.io.IOException: HTTPS hostname wrong:  should be <xxx.xxx.xxx.xxx>
    at sun.net.www.protocol.https.HttpsClient.checkURLSpoofing(HttpsClient.java:524)
    at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:448)

The question I have is, how can I get the value that is being passed to checkURLSpoofing? 我的问题是,如何获取传递给checkURLSpoofing的值? My intention is to reroute it in my hosts file. 我的意图是在我的主机文件中重新路由它。 I am already using this block of code to prevent Hostname Verification, though I believe it is still happening. 我已经在使用此代码块来阻止主机名验证,尽管我相信它仍在发生。

 HttpsURLConnection.setDefaultHostnameVerifier(new HostnameVerifier()
 {
     public boolean verify(String hostname, SSLSession session)
     {               
         return true;
     }
 });

I have also added this to my run configuration to prevent Hostname Verification 我还将此添加到运行配置中以防止主机名验证

-Dweblogic.security.SSL.ignoreHostnameVerification=true

I also do not have the option of altering the SSL certificate. 我也没有更改SSL证书的选项。

The problem was that the hosts file entry was being overridden by the proxy I was behind. 问题是主机文件条目被我背后的代理覆盖。 Solved the issue by going off site. 通过离开现场解决了该问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何将ip字符串xxx.xxx.xxx.xxx:xxxxx转换为xxx.xxx.xxx.xxx? - How to convert a ip string xxx.xxx.xxx.xxx:xxxxx to xxx.xxx.xxx.xxx? 类文件有错误的版本xxx,应该是xxx - Class file has wrong version xxx, should be xxx 线程“main”中的异常 java.lang.IllegalArgumentException:没有为 URI“http://xxx.xxx.xxx.xxx:xxxx”的方案“http”安装 NetworkModule - Exception in thread “main” java.lang.IllegalArgumentException: no NetworkModule installed for scheme “http” of URI “http://xxx.xxx.xxx.xxx:xxxx” java.lang.NoClassDefFoundError:org / apache / jsp / _xxx错误的名称:com / ibm / _jsp / _xxx - java.lang.NoClassDefFoundError: org/apache/jsp/_xxx wrong name: com/ibm/_jsp/_xxx 找不到模块xxx,xxx需要 - Module xxx not found, required by xxx 休眠PhysicalNamingStrategy和@Table(name =“ xxx”) - Hibernate PhysicalNamingStrategy and @Table(name = “xxx”) 找不到在ServletContext中定义的名称为XXX的bean的类XXX - Cannot find Class XXX for bean with the name XXX defined in ServletContext XXX和java.lang.Class有什么区别<XXX> - what is difference between XXX and java.lang.Class<XXX> 警告-无法通过ClassLoader访问“ XXX / XXX / XXX”类 - WARN - Class 'XXX/XXX/XXX ' is not accessible through the ClassLoader Hbase 0.94.xxx和Jetty 8.xxx - Hbase 0.94.xxx with Jetty 8.xxx
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM