SSL-Connection causes javax.net.ssl.SSLException: hostname in certificate didn't match (WSO2 Api Manager / Tomcat)

前端 未结 2 1519
礼貌的吻别
礼貌的吻别 2021-01-21 19:52

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 t

相关标签:
2条回答
  • 2021-01-21 20:42

    Inside the axis2\axis2.xml file on the conf folder you have to change the https transportSenderto have the following line:

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

    Here you can read a little more about that

    0 讨论(0)
  • 2021-01-21 20:51

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

    Setting

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

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

    0 讨论(0)
提交回复
热议问题