For various remote administration purposes (e.g. for PPPC configuration) you might need to know the Bundle IDs and Code Requirement information of the applications that you have deployed on the user computers. We can use Terminal for this. All you need to do is, type the following code:
codesign -dv [path of application]
For example, for the LittleSnitch application installed in the Applications folder, this code should look like this:
codesign -dv /Applications/Littlesnitch.app
As a result, the Bundle ID in com.developer.application format will appear in the bottom line.
In addition to the Bundle ID, you will also need a Code Requirement for PPPC configuration. You can also find this information via Terminal. All you need to do is to type the following code:
codesign -dr - [path of application]
The result will be something like the following:
anchor apple generic and identifier “com.littlesnitch.da.app” and (certificate leaf[field.1.2.840.113635.100.6.1.9] /* exists */ or certificate 1[field.1.2.840.113635.100.6.2.6] /* exists */ and certificate leaf[field.1.2.840.113635.100.6.1.13] /* exists */ and certificate leaf[subject.OU] = TZ3DZTF2YKY)
Ignore whatever is written before “identifier” and copy the part from identifier onwards.

If you want to do this in a different way, you can also use HCS’s Show Me Your ID application. When you drag and drop the application whose Bundle ID you want to know to Show Me Your ID’s screen, the Bundle Identifier, Team Identifier and Code Requirement information about the application will automatically appear.
It can even save the app’s icon to the desktop. This icon will also be very useful if you want to distribute this app with corporate app stores.

Leave a Reply