Detect if Apple Certificate File is Development versus Distribution
You can test the certificate for specific OID entries, or more easily but less robustly, view the contents and pattern match.

To extract the contents of a .cer/DER encoded certificate:

openssl x509 -in [PATH TO CERTIFICATE.cer] -noout -inform der -text