WSO2 ESB Axis2 Service throwing Host name verification failed for host

后端 未结 2 1127
花落未央
花落未央 2021-02-09 01:18

I have created an AXIS service which connects to WSO2 Identity Server and validates a token. When I deploy this axis service on WSO2 App Server, I get the correct response. Wher

相关标签:
2条回答
  • 2021-02-09 01:58

    Adding to Ratha's answer, the following official documentation provides a detailed explanation about hostname verification in WSO2 products.

    Enabling HostName Verification

    0 讨论(0)
  • 2021-02-09 02:11

    Set the parameter HostnameVerifier to AllowAll for transportSender in the Axis2 configuration (axis2.xml).

    <transportSender name="https" class="org.apache.synapse.transport.passthru.PassThroughHttpSSLSender">
       <!--...-->
       <!--supports Strict|AllowAll|DefaultAndLocalhost or the default if none specified -->
       <parameter name="HostnameVerifier">AllowAll</parameter>
       <!--supports Strict|AllowAll|DefaultAndLocalhost or the default if none specified -->
    </transportSender>
    
    0 讨论(0)
提交回复
热议问题