I am developing both an iOS app and server using Grpc (objective-C/Swift and C# respectively).
The app will be naturally released to the Apple App Store. However, the server is designed to reside within the user's corporate network, deploying our Grpc C#-based product, which will require a self-signed certificate strategy.
That means we will not be bundling server certificates within the app bundle - but need to pickup whatever certificates have been configured (using profiles, EMM, etc.) and coordinating with their own servers.
I am using the generated code approach for Objective-C, and leveraging GRPCProtoService<T> services.
My understanding is that by default, the Objective-C Grpc implementation assumes secure SSL connections and you must use
GRPCCall.useInsecureConnections(forHost:)
to override that behavior.
What I don't understand is how to use, if I even need to use, GRPCCall.setTLSPEMRootCerts, in a situation when the server certificate is not in the app bundle, but already on the device.
Thanks.