WSO2 EMM Android Agent Configuration

2019-03-06 03:47发布

问题:

I'm trying to use WSO2 EMM service. I downloaded the Binary file and uploaded it to my server and configured the ipaddress into it. And then, I started it, yes it works fine. This is my address <a href=https://ip:94433/emm/>. Normal admin admin. But, I tried to register my device, but it wouldn't register.I keep getting authentication failed. The server address i used is ip. Please help in anyway you can, I'll be very glad if I can get through how to register devices.

Thanks.

回答1:

Seems you have issue with HTTPS

Please follow these steps: step 2 to step 8 https://docs.wso2.com/display/EMM110/iOS+Server+Configurations#iOSServerConfigurations-step2

After that, you can generate the BKS file using following command:

keytool -noprompt -import -v -trustcacerts -alias 'openssl x509 -inform PEM -subject_hash -noout -in ca_cert.pem' -file ca_cert.pem -keystore emm_truststore.bks -storetype BKS -providerclass org.bouncycastle.jce.provider.BouncyCastleProvider -providerpath bcprov-jdk16-146.jar -storepass 'wso2carbon'

Note: you need to have bcprov-jdk16-146.jar in the folder in order to generate above bks file

Once you generate it copy emm_truststore.bks to Android res/raw folder. In android source code CommonUtilities.java change SERVER_PORT to 9443 and SERVER_PROTOCOL to https://



标签: wso2-emm