Customer has production environment and full copy of it in test environment. Test environment contains web certificate from production and of course browser throws warning while connecting to web-site using IP. Customers android apk using IP address of test web server to work with this application. I tried to instrument APK with a different ways to work with our agent on webserver via https (IP, hostname etc) but I think our library inside APK cannot send data via https if certificate is not valid for webserver. There is no way to use http instead https.
Using usual web browser I can see that our js is working and the agent intercept dynaTraceMonitor URI
I tried to instrument this APK and send the data to my easyTravel web server agent and it works fine.
Need community help to solve this. Thanks a lot for any ideas.
When using SSL, the mobile ADK performs two different types of checks when connecting over a secure link:
Both of these are put in place to prevent the interception/snooping of customer data, as well as man-in-the-middle attacks.
In a test environment, you can work around #1 by, as Roman S. pointed out, setting the 'allowAnyCert=true' flag. You can always set allowAnyCert=false once the app moves to production.
For #2, make sure that you are connecting to the server using the hostname in the SSL certificate instead of an alias or an IP address.
ok. We finally managed to send EUM data from device to webserver agent, but where is no link between user action and server-side data. We cannot do anything else because we do not have access apk developer at this moment