2016-04-21 169 views
0

我试图在服务器上安装WSO2-EMM。我已成功启动服务器并使用默认的管理员/管理员用户名和密码登录到企业移动管理器。我使用https连接到EMM(HTTP不适合我)。我没有改变服务器上XML文件的任何设置。我所做的是按照以下步骤创建JKS和P12文件,这些文件已成功添加到wso2 JKS文件并上传到服务器。我也成功地创建了一个BKS文件并将其覆盖在Android项目中。然后,我更新了以下设置CommonUtilities.java文件:WSO2-EMM Android代理服务器不可用

  • SERVER_IP:IP地址到我的服务器(无端口)
  • SERVER_PORT:9443
  • SERVER_PROTOCOL:https://开头

    我已将应用直接构建到我的手机,无法连接到服务器。然后我生成了一个带有在wso2-emm网站上提供的stept时创建的密钥库的签名APK。也无法连接到服务器。我现在唯一能想到的是,WSO2-EMM仪表板的https证书无效,可能会干扰与应用程序的连接?

我的Android工作室的日志:

04-21 09:50:00.174 25086-25168/org.wso2.emm.agent D/ServerUtils: Attempt #1 to register [ 04-21 09:50:00.174 25086:25168 E/
] in 04-21 09:50:00.194 25086-25168/org.wso2.emm.agent V/ServerUtils: my_ipPosting '{username=admin, password=admin}' to https://my_ip:9443/emm/api/devices/clientkey 04-21 09:50:00.194 25086-25168/org.wso2.emm.agent V/ServerUtils: Posting 'username=admin&password=admin' to https://my_ip:9443/emm/api/devices/clientkey 04-21 09:50:00.194 25086-25168/org.wso2.emm.agent I/System.out: Thread-202051(ApacheHTTPLog):Reading from variable values from setDefaultValuesToVariables 04-21 09:50:00.194 25086-25168/org.wso2.emm.agent I/System.out: Thread-202051(ApacheHTTPLog):isSBSettingEnabled false 04-21 09:50:00.194 25086-25168/org.wso2.emm.agent I/System.out: Thread-202051(ApacheHTTPLog):isShipBuild true 04-21 09:50:00.194 25086-25168/org.wso2.emm.agent I/System.out: Thread-202051(ApacheHTTPLog):getDebugLevel 0x4f4c 04-21 09:50:00.194 25086-25168/org.wso2.emm.agent I/System.out: Thread-202051(ApacheHTTPLog):Smart Bonding Setting is false 04-21 09:50:00.194 25086-25168/org.wso2.emm.agent I/System.out: Thread-202051(ApacheHTTPLog):SmartBonding Setting is false, SHIP_BUILD is true, log to file is false, DBG is false, DEBUG_LEVEL (1-LOW, 2-MID, 3-HIGH) is 1 04-21 09:50:00.214 25086-25106/org.wso2.emm.agent D/mali_winsys: new_window_surface returns 0x3000, [1336x648]-format:1 04-21 09:50:00.224 25086-25086/org.wso2.emm.agent E/ViewRootImpl: sendUserActionEvent() mView == null

回答

0

能否请您解释一下您正在使用的EMM服务器的版本?由于EMM最新版本(迄今)是2.0.1,我假设你在这个版本。只能在EMM 1.1.0服务器的代理程序代码中找到类ServerUtils。 EMM 2.x代理程序代码在这里找到[1]。 此服务器是否托管在公共服务器中?如果您在本地进行测试,则您的设备和服务器都需要位于同一网络中。此外,您可以以SSL调试模式启动服务器,如 - sh wso2server.sh -Djavax.net.debug = all 并检查握手级别发生了什么。

[1]。 https://github.com/wso2/product-emm/tree/master/modules/mobile-agents/android/client

+0

嗨Inosh, 对不起,回复迟了。我正在使用从官方网站下载的最新版本的EMM服务器。我已经下载了最新版本的Android Studio版本。但我会再试一次,看看它是怎么回事。感谢SSL调试模式不知道那个,要测试看看发生了什么。 – Tripwire

+0

嗨Inosh, 我更新到最新版本的应用程序,我确实运行的是旧版本。服务器托管在公共服务器上。我已经启动服务器作为调试,现在看到(在我从手册重新整理了BKS设置之后)SSL握手似乎在服务器上工作(没有错误)。但是,当我试图与Android应用程序连接时,它给出了一个错误: D/DynamicClientManager:com.android.volley.NoConnectionError:javax.net.ssl.SSLHandshakeException:java.security.cert.CertPathValidatorException:Trust anchor for找不到证书路径。 @InoshPerera – Tripwire