Top

iOS notification issue

Comments

3 comments

  • Olivier ANGUENOT

    Hi Apurva,

    Here is a small documentation that explains how to generate IOS certificate compliant for Rainbow Push notification service.

    This documentation will be part of the IOS official documentation on the Rainbow API HUB.

     

    Rainbow IOS Push Notifications

     

    This procedure has to be donne for both certificates (IM and VOIP)

    - Retrieve certificate file from Apple developer portal (.cer file)
    - Import this file in the Mac keychain.
    - Find this certificate into the keychain
    - Export the certificate from the keychain and save it with a name... MyDevCert.p12 (right click, export and enter your password)
    - Expend the certificate and export the private key associated to this certificate... MyKey.p12

    - These files now need to be converted to the PEM format by executing this command from the terminal (Always enter a passphrase):

    `openssl pkcs12 -clcerts -nokeys -out MyDevCert.pem -in MyDevCert.p12`
    `openssl pkcs12 -nocerts -out MyKey.pem -in MyKey.p12`

    - Remove the passphrase from the key :

    `openssl rsa -in MyDevCert.pem -out MyDevCert-noenc.pem`

    - Combine the key and cert files into a apns-dev.pem :

    `cat MyDevCert.pem MyDevCert-noenc.pem > cert-dev.pem`

    - Upload the cert-dev.pem file with the Rainbow API Hub
     
    Hope this will help you.
     
    Could you confirm that it works on your side ?
     
    Regards,
    Olivier
    0
    Comment actions Permalink
  • Apurva DONGRE

    I guess there a mistake in your command.

    When we remove passphrase from the key you have given  `openssl rsa -in MyDevCert.pem -out MyDevCert-noenc.pem`

    but what i think it should be like`openssl rsa -in MyKey.pem -out MyKey-noenc.pem`.

    Please check and confirm.

    Thanks.

    0
    Comment actions Permalink
  • Joseph IACOPETTA

    Hello Apurva,

    Yes, you're right.

    The right command is : 

    • openssl rsa -in MyKey.pem -out MyKey-noenc.pem (remove passphrase)

    After that you can combine this unencrypted key with your pem certificate :

    • cat MyDevCert.pem MyKey-noenc.pem > cert-dev.pem

    And finally upload the cert-dev.pem file with Rainbow API Hub.

     

    Best regards,

    Joseph.

    0
    Comment actions Permalink

Please sign in to leave a comment.

Still can't find what you need?

  • Contact Us

    Do you have any question about Rainbow? Leave us a message to get more information.

    Contact
  • Ask the Community

    Do you need help? Ask your questions to the Community and get answers from other Rainbow users.

    Post message