Generating a .pem certificate from your .cer file to pass on to the server developer

suggest change
  1. Save aps.cer to a folder
  2. 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.
  1. cd to that folder in Terminal and execute the following commands:
  2. Convert .cer to a .pem certificate
openssl x509 -in aps.cer -inform der -out aps.pem
  1. Convert your key to .pem format. To open the key, enter the password you exported it with from the keychain, in step 2. Then, enter another password that will protect the exported file. You will be prompted to enter it twice for confirmation.

openssl pkcs12 -nocerts -out key.pem -in key.p12

  1. Merge the files into one final file

cat key.pem aps.pem > final_cert.pem

  1. The final_cert.pem is the final result. Pass it on to server developers with the password from step 5, so that they will be able to use the protected certificate.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:


Push Notifications:
* Generating a .pem certificate from your .cer file to pass on to the server developer

Table Of Contents
12 UIView
15 UIColor
26 UIImage
28 CALayer
30 NSDate
40 iBeacon
49 NSTimer
64 Push Notifications
79 NSURL
87 AWS SDK
96 NSData
101 Segues
104 EventKit
105 NSBundle
106 SiriKit
111 StoreKit
117 3D Touch
119 Keychain
122 Block
141 AirDrop
144 UISlider
145 Carthage
146 HealthKit
151 plist
157 MVVM
164 UIPhoenix
166 Simulator
168 NSArray
169 OpenGL
175 Core Data
179 MyLayout
180 UIFont
189 Security
200 Codable