title: Amazon SNS Mobile Push - APNS app registration
body: <p>I have problem setting up my first Amazon SNS mobile push application.</p>
  
  <p>I followed the <a href="http://docs.aws.amazon.com/sns/latest/dg/SNSMobilePushPrereq.html" rel="nofollow">document</a> Amazon provided to get all required files: Apple Push Notification SSL, Application Private Key and Device token.</p>
  
  <p>Then I followed the guide to register the app. I went to the AWS SNS console and clicked on "add a new app", then I chose APNS_SANDBOX, used the .p12 file and tried to load credentials from the file, but got the following error</p>
  
  <p>"File type is not supported or file has been corrupted"</p>
  
  <p>I tried to find relative information online but couldn't get any. Any idea how I could fix this error?</p>