wso2wso2-iot

Error when changing IP and certificate on wso2-IoT


I have just installed the new version of wso2-iot(3.1.0).

I order to use it remotely, I have changed the IP from localhost to the IP address of my server with the script /scripts/change-ip.sh.

All seems to work well, but when I login into https://IP:9443/devicemgr, I got the message bellow :

An Error Occurred!
HTTP Status : 500

org.wso2.carbon.apimgt.integration.client.exception.APIMClientOAuthException: failed to retrieve oauth token using jwt

Has someone experienced the same problem ? Is there a solution ?

Thanks


I've tried to install wso2-iot on 3 servers :


Solution

  • One reason for the issue is not having the correct certificate in the IoT_Home/conf/identity/identity-providers/iot_default.xml. Please make sure to add that correctly. Reason for that could be that in the change-ip.sh script "sed -e" does not work on some linux os versions.