Save aps.cer to a folder
Open "Keychain access" and export the key that is under that certificate to a .p12 file (call it key.p12). To do that right click on it and choose Export. Save it to the same folder as step 1. On export you will be prompted for a password. Make something up and memorize it.
cd to that folder in Terminal and execute the following commands:
Convert .cer to a .pem certificate
openssl x509 -in aps.cer -inform der -out aps.pem
openssl pkcs12 -nocerts -out key.pem -in key.p12
cat key.pem aps.pem > final_cert.pem