When dealing with iTunes apps, the Distribution certificate and signing key (P12 file)and signing key (P12 file) and .mobileprovision (plist file) are a bit of a mystery to me. I want to know how to get information from these files programmatically from the CLI.
How do you extract info from these files?
There is a wildcard
.mobileprovision
file for the entire Dev center account. It contains:Each app that has push notifications enabled has its own
.mobileprovision
file (it contains the push cert and the wildcard cert).The most useful command I have found is to convert the
.mobileprovision
file to XML, you can then do what you wish with it:The CFPropertyList lib is a good PHP lib to interact with
.mobileprovision
files.The Distribution certificate and signing key lives in a .p12 container. As the name suggests it contains:
Here are some handy commands:
To get when cert expires:
To get the private key:
To get the cert:
Get the sha1 of othe cert: