Create Push notification platform for AWS SNS

Rajan Maharjan
2 min readJul 18, 2017

Steps:

  1. Add iOS Certificate in developer account
  2. Obtain app private key (.p12 File)
  3. Create push notification platform in SNS Dashboard

1. Add iOS Certificate

First we have to create the iOS Certificates (Production / Development)

  1. Go to https://developer.apple.com/

For Development

  • Certificates > Development
  • Click + sign (top right corner)
  • Under Development section > Select Apple Push Notification service SSL (Sandbox)
  • Select the AppId (build Identifier of iOS application)
  • Create a CSR file. (Follow the instruction given)
  • Upload CSR file.
  • Download the cert file

For Production

  • Certificates > Production
  • Click + sign (top right corner)
  • Under Production section > Select Apple Push Notification service SSL (Sandbox & Production)
  • Select the AppId (build Identifier of iOS application)
  • Create a CSR file. (Follow the instruction given)
  • Upload CSR file.
  • Download the cert file

2. Obtain app private key (.p12 File)

  • Double click the .cer file downloaded from previous step
  • Open Keychain Access, select Keys, and then highlight your app private key.
  • Click File, click Export Items…, and then enter a name in the Save As: field.
  • Accept the default .p12 file format and then click Save.

3. Create Application for SNS in AWS

  • Go to https://console.aws.amazon.com/sns/
  • Under Applications > Create Platform Application
  • Give name for the application
  • Push notification platform > Apple production (for production)
  • Push notification platform > Apple production (for development)
  • Push certificate type > iOS push certificate (default)
  • Choose the downloaded .p12 file
  • Enter password (the one you kept in previous step for downloading)
  • Click > Load Credentials form file
  • Finally > Create platform application

That’s it!

Thanks for reading. :)

--

--