Generate .pem file used to set up Apple Push Notifications

前端 未结 7 1639
深忆病人
深忆病人 2020-11-22 14:46

I tried and tried to generate a .pem file, every time generating certificates from the client\'s account and then generating the .pem file using the terminal, but it\'s of n

相关标签:
7条回答
  • 2020-11-22 15:20

    it is very simple after exporting the Cert.p12 and key.p12, Please find below command for the generating 'apns' .pem file.

    https://www.sslshopper.com/ssl-converter.html 


    command to create apns-dev.pem from Cert.pem and Key.pem
    
    
    
    openssl rsa -in Key.pem -out apns-dev-key-noenc.pem
    
    
    
    cat Cert.pem apns-dev-key-noenc.pem > apns-dev.pem
    

    Above command is useful for both Sandbox and Production.

    0 讨论(0)
提交回复
热议问题