Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6107593
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:12:18+00:00 2026-05-23T14:12:18+00:00

I can’t seem to figure out how to properly export my cert for use

  • 0

I can’t seem to figure out how to properly export my cert for use in my iOS app with push notifications. I’m using the following cert, downloaded from the Certificates section of the iOS Provisioning Portal.

enter image description here

I’m then following one of the many tutorials I’ve found all over the web that are all different by the way, to get my cert into a .pem format for use in ruby-apns.

First I export it from the Keychain:

enter image description here

After I give it a name and a password I perform the following commands in the terminal*:

openssl pkcs12 -in cert.p12 -out apple_push_notification_dev.pem -nodes -clcerts

*note: this isn’t the only way I’ve tried this, just the latest, I have also tried via the instructions at the following urls:

  • http://blog.boxedice.com/2010/06/05/how-to-renew-your-apple-push-notification-push-ssl-certificate/
  • http://blog.boxedice.com/2009/07/10/how-to-build-an-apple-push-notification-provider-server-tutorial/
  • http://code.google.com/p/apns-sharp/wiki/HowToCreatePKCS12Certificate
  • http://wiki.cs.unh.edu/wiki/index.php/Using_the_Apple_Push_Notification_Service

Not a single one of these solutions work. I’m sitting here looking at the following error from the console when I try to use ruby-apns:

read finished A: sslv3 alert certificate unknown (OpenSSL::SSL::SSLError)

And essentially every other server solution I’ve found has told me my certificate is incorrect or that there’s a problem with it as well.

Am I doing this wrong?

===============================

Overnight Courtesy Bump Stealth Edit

So I beat my head against the wall last night, and actually came across Apple’s own instructions for doing this. It’s almost the exact same, and I tried it to the same tune. Nevertheless, here is the latest attempt from this link:

openssl pkcs12 -in CertificateName.p12 -out CertificateName.pem -nodes
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T14:12:18+00:00Added an answer on May 23, 2026 at 2:12 pm

    (1) First you need to set the configuration for your app ID to enable push notification service. You can check in the image.
    enter image description here

    (2) Then You can install the certificate and intall in your keychain in your machine.
    enter image description here

    (3) Here you are exporting two files. Instead of that you just need to export the private key as shown in the screenshot.
    enter image description here

    (4) Now you can export the private key and store with any name you want in .p12 format as shown in the screenshot below.
    enter image description here

    (5) Then follows all other steps as you know very well like you mentioned above.

    openssl pkcs12 -in CertificateName.p12 -out CertificateName.pem -nodes
    

    Please let me know if you still have any question or if you are not able to solve then let me know.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can't seem to figure out what's wrong with the simple getJSON call below. It's
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
Can't figure out how to do this in a pretty way : I have
Can I authenticate with just Google account username and password instead of using OAuth?
Can someone thoroughly explain the last line of the following code: def myMethod(self): #
Can anyone give me an example of how to return the following json simply
Can PHP PDO extension bind nested objects automatically ? I mean using foreign key
Can anybody tell what is the best(easy) way to sort the following string 'index'
Can someone guide me on a possible solution? I don't want to use /bin/cp
Can someone tell me how does the imdb app manage to play trailers on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.