Top

iOS notification issue

Commentaires

3 commentaires

  • 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
    Actions pour les commentaires Permalien
  • 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
    Actions pour les commentaires Permalien
  • 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
    Actions pour les commentaires Permalien

Vous devez vous connecter pour laisser un commentaire.

Vous n'avez pas trouvé ce que vous cherchez?

  • Contactez-nous

    Vous avez des questions? Laissez-nous un message pour obtenir plus d'informations.

    Contactez-nous
  • Demandez à la Communauté

    Vous avez besoin d'aide? Posez vos questions à la Communauté et obtenez des réponses d'autres utilisateurs Rainbow.

    Poster un message