<bdo id='Biqz8'></bdo><ul id='Biqz8'></ul>
  • <tfoot id='Biqz8'></tfoot>
    1. <i id='Biqz8'><tr id='Biqz8'><dt id='Biqz8'><q id='Biqz8'><span id='Biqz8'><b id='Biqz8'><form id='Biqz8'><ins id='Biqz8'></ins><ul id='Biqz8'></ul><sub id='Biqz8'></sub></form><legend id='Biqz8'></legend><bdo id='Biqz8'><pre id='Biqz8'><center id='Biqz8'></center></pre></bdo></b><th id='Biqz8'></th></span></q></dt></tr></i><div id='Biqz8'><tfoot id='Biqz8'></tfoot><dl id='Biqz8'><fieldset id='Biqz8'></fieldset></dl></div>
      1. <legend id='Biqz8'><style id='Biqz8'><dir id='Biqz8'><q id='Biqz8'></q></dir></style></legend>
      2. <small id='Biqz8'></small><noframes id='Biqz8'>

        SSL-Connection 导致 javax.net.ssl.SSLException:证书中的主机名不匹配(WSO2

        时间:2024-05-10
      3. <tfoot id='LD5sw'></tfoot>

      4. <small id='LD5sw'></small><noframes id='LD5sw'>

        <i id='LD5sw'><tr id='LD5sw'><dt id='LD5sw'><q id='LD5sw'><span id='LD5sw'><b id='LD5sw'><form id='LD5sw'><ins id='LD5sw'></ins><ul id='LD5sw'></ul><sub id='LD5sw'></sub></form><legend id='LD5sw'></legend><bdo id='LD5sw'><pre id='LD5sw'><center id='LD5sw'></center></pre></bdo></b><th id='LD5sw'></th></span></q></dt></tr></i><div id='LD5sw'><tfoot id='LD5sw'></tfoot><dl id='LD5sw'><fieldset id='LD5sw'></fieldset></dl></div>

            <legend id='LD5sw'><style id='LD5sw'><dir id='LD5sw'><q id='LD5sw'></q></dir></style></legend>
              <tbody id='LD5sw'></tbody>

                  <bdo id='LD5sw'></bdo><ul id='LD5sw'></ul>
                • 本文介绍了SSL-Connection 导致 javax.net.ssl.SSLException:证书中的主机名不匹配(WSO2 Api Manager/Tomcat)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我目前正在设置一个 dockerized WSO Api Manager.我们的域有一个通配符证书.我成功将其转换为java keystore,并替换了两个jks文件.

                  I am currently setting up a dockerized WSO Api Manager. We have got a wildcard certificates for our domain. I successfully transformed it into a java keystore and replaced the two jks files.

                  当我打开 API 管理器时,我没有收到 ssl 警告,并且浏览器将我的连接标记为安全.

                  When I open the API manager, I get no ssl warnings and the browser marks my connection as secure.

                  当我尝试登录时出现错误:

                  When I try to login I get an error :

                  在我得到的日志文件中:

                  In the log files I get :

                  TID: [-1234] [] [2017-03-24 11:37:55,305]  INFO     
                       {org.apache.axis2.transport.http.HTTPSender} - Unable to sendViaPost   
                       to    url[https://localhost:9443/services/AuthenticationAdmin]  
                       {org.apache.axis2.transport.http.HTTPSender}
                  javax.net.ssl.SSLException: hostname in certificate didn't match: 
                       <localhost> != </*.mydomain.io/mydomain.io/*.mydomain.io>
                       at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.verifyHostName(SSLProtocolSocketFactory.java:341)
                       at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.verifyHostName(SSLProtocolSocketFactory.java:277)
                  

                  看起来服务器正在尝试与本地主机进行 SSL 连接.那么如何将匹配的证书添加到允许 localhost 访问的密钥库?

                  It looks like the Server is trying to do SSL connections to localhost. So how can I add a matching certificate to the keystore allowing localhost access?

                  非常感谢!

                  推荐答案

                  api-manager.xml 文件中,更改所有 localhost 的引用以匹配您的域名,重启,应该就好了.

                  In the api-manager.xml file , change all references of localhost to match your domain name , restart , and it should be good.

                  设置

                  <parameter name="HostnameVerifier">AllowAll</parameter>
                  

                  存在安全风险,主机名验证是有原因的.

                  is a security risk , Hostname Verification is there for a reason.

                  这篇关于SSL-Connection 导致 javax.net.ssl.SSLException:证书中的主机名不匹配(WSO2 Api Manager/Tomcat)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:错误 - ListenerManager 无法初始化 httpstransport 侦听器 - WSO2 下一篇:WSO2 Governance Registry 锁定错误

                  相关文章

                • <tfoot id='mNCaD'></tfoot>

                  <legend id='mNCaD'><style id='mNCaD'><dir id='mNCaD'><q id='mNCaD'></q></dir></style></legend>
                • <i id='mNCaD'><tr id='mNCaD'><dt id='mNCaD'><q id='mNCaD'><span id='mNCaD'><b id='mNCaD'><form id='mNCaD'><ins id='mNCaD'></ins><ul id='mNCaD'></ul><sub id='mNCaD'></sub></form><legend id='mNCaD'></legend><bdo id='mNCaD'><pre id='mNCaD'><center id='mNCaD'></center></pre></bdo></b><th id='mNCaD'></th></span></q></dt></tr></i><div id='mNCaD'><tfoot id='mNCaD'></tfoot><dl id='mNCaD'><fieldset id='mNCaD'></fieldset></dl></div>

                      <bdo id='mNCaD'></bdo><ul id='mNCaD'></ul>

                    <small id='mNCaD'></small><noframes id='mNCaD'>