We need to implement certificate pinning in our mobile app. We have used Appcelerator Titanium as the framework to build the same. There is a module with AFNetworking that supports Certificate Pinning.
The concern is, if we store the certificate within the app and bundle it whilst being uploaded to the App Store/Play Store; what happens if the certificate expires? Do we have to push another update with the renewed certificate bundled? Or is there a mechanism to get the certificate updated within the mobile app?