Then deploy your client apps with the certificate of your self signed root.
Assuming that your root is safe, no attacker will be able to generate a cert that will be accepted by your client.
Then deploy your client apps with the certificate of your self signed root.
Assuming that your root is safe, no attacker will be able to generate a cert that will be accepted by your client.
Which part is confusing? Maybe I can try to clarify/give examples where helpful.
The attack on that latter system is that you as the client have no basis on which to trust that cert when its first presented. So an attacker who can intercept that first presentation of the certificate and replace it can MITM the traffic flow without you knowing. Worse, most devs "fix" that initial trust problem by telling the client not to validate the cert when its presented (because they wouldn't have any basis for doing that anyway), so an attacker is free to inject their own cert into the traffic at any time.
Using an actual private PKI hierarchy helps fix this: you create a root, and get your clients to trust only that root. Now you can issue your own certs, and an attacker can't MITM the traffic unless they can get their own cert from your CA. That's the same model as is used with commercial CAs: you're just operating the root of the chain yourself instead of paying someone else to do it.
Certificate Pinning is the solution you'd look to if you have a clients that cannot securely ship with root certificates/cannot pick the root certificates they will use to validate a certificate when initiating a TLS connection.
Edit: I should add that I am not a mobile developer, so I don't actually know if the 'bring your own root CA' method is supported by the corresponding TLS libraries. But I know that this is possible 'in general'
I call it trust-on-first-use because I didn't verify the initial signatures. Hmmm..