I am new to the WSO2 AM, so I am not sure if this is the right place for my question. Nevertheless. . . I have recently installed WSO2 AM and published a new API.
At first, everything worked as expected (I deploy the API using "localhost" as the hostname for the wso2am)
Then, I change the hostname used by the product following the instructions detailed here: https://docs.wso2.com/display/AM210/Changing+the+Hostname Now I am able to access the wso2am using the new hostname but I'm not able to use the published API because I get the following error:
2019-09-06 15:16:18,674 [-] [HTTPS-Sender I/O dispatcher-1] ERROR TargetHandler I/O error: Host name verification failed for host : localhost javax.net.ssl.SSLException: Host name verification failed for host : localhost
I have followed these instructions (WSO2 ESB Axis2 Service throwing Host name verification failed for host) to disable the hostname verification and then, the API worked again (I changed the parameter "HostnameVerifier" to “AllowAll” on the axis2.xml configuration file)
However, the security guidelines for deploying a WSO2 product in a production environment said I should enable HostName Verification.
Is there another configuration that I am missing for this to work as expected?