By default, WSO2 products identify the hostname of the current machine through the Java API. However, this value sometimes yields erroneous results on some environments. Therefore, users are recommended to configure the hostname. The following procedure explains how to change the hostname and management hostname of WSO2 API Manager (WSO2 API-M) as required for your production environment.
Open the
<API-M_HOME>/repository/conf/carbon.xml
file and set theHostName
andMgtHostName
property as shown below.Generate a key store, export the public certificate from the keystore, and import that certificate to the
client-truststore.jks
file.
For more information, see Creating New Keystores in the WSO2 Administration guide.