WSO2 MDM Android Agent issue

2019-08-05 17:33发布

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?

3条回答
我想做一个坏孩纸
2楼-- · 2019-08-05 17:55

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.

查看更多
对你真心纯属浪费
3楼-- · 2019-08-05 17:58

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

查看更多
疯言疯语
4楼-- · 2019-08-05 18:14

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.

查看更多
登录 后发表回答