WSO2 MDM Android Agent issue

孤人 提交于 2019-12-24 13:37:30

问题


I was able to succesfully build and export the Android app in Eclipse after entering the server IP address in the CommonUtilities.java file.

This apk is downloaded, installed and run on the mobile android device with success. But now when I enter all necessary data for first registration of the app and choose 'Register', I get a message saying : 'Authentication failed due to a conenction failure do you want to try again?'

Any idea what I might be doing wrong?


回答1:


Can you replace your ServerUtilities.java with our latest version ? And test it with HTTP and if it works, then try with HTTPs also. In case the HTTP works and HTTP not, then you have to check your BKS and put a valid BKS there.




回答2:


This message is displayed when there is a connection failure or the server SSL certificate is not trusted. Connection between the Android agent app and the EMM server is through https and if you are using a self signed certificate then you need to put it in the Agent project in Eclipse and export the Android app. Please refer the Android Client Configuration to create the BKS and add it to your android project.

Similar question was asked in Github of MDM-Android-Agent




回答3:


Android expects your keystore to be in Bouncy Castle (BKS) format. In the docs it has linked to a iOS keystore generation code in OpenSSL since this phase also needs to be done inorder to configure the EMM. If you are only configuring the Android make sure the keystore file is in BKS format. One way to do is to generate a JKS file by following the commands in the documentation using OpenSSL and convert it to BKS format. You may use Portecle for this.



来源:https://stackoverflow.com/questions/21993461/wso2-mdm-android-agent-issue

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!