我试图在服务器上安装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
嗨Inosh, 对不起,回复迟了。我正在使用从官方网站下载的最新版本的EMM服务器。我已经下载了最新版本的Android Studio版本。但我会再试一次,看看它是怎么回事。感谢SSL调试模式不知道那个,要测试看看发生了什么。 – Tripwire
嗨Inosh, 我更新到最新版本的应用程序,我确实运行的是旧版本。服务器托管在公共服务器上。我已经启动服务器作为调试,现在看到(在我从手册重新整理了BKS设置之后)SSL握手似乎在服务器上工作(没有错误)。但是,当我试图与Android应用程序连接时,它给出了一个错误: D/DynamicClientManager:com.android.volley.NoConnectionError:javax.net.ssl.SSLHandshakeException:java.security.cert.CertPathValidatorException:Trust anchor for找不到证书路径。 @InoshPerera – Tripwire