Top

iOS notification issue

Comentários

3 comentários

  • 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
    Ações de comentário 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
    Ações de comentário 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
    Ações de comentário Permalink

Por favor, entrar para comentar.

Ainda não consegue encontrar o que você precisa?

  • Contate-nos

    Você tem alguma pergunta sobre o Rainbow? Deixe-nos uma mensagem para obter mais informações.

    Contato
  • Pergunte à Comunidade

    Você precisa de ajuda? Faça suas perguntas na Comunidade para obter respostas de outros usuários do Rainbow.

    Enviar mensagem