訊息推播

iOS

CertificateSigningRequest.certSigningRequest

keychain > certificate assistant > request a certificate from a certificate authority

Key.p12

keys > export both certificate and key

aps_production.cer

Certificates, Identifiers & Profiles > Create APP ID > Check Push Notifications > Create Production SSL Certificate > Import CSR file > Download

cert.pem, key.pem, ck.pem

$ openssl x509 -inform der -in aps_production.cer -out cert.pem
$ openssl pkcs12 -nocerts -in Key.p12 -out key.pem
$ cat cert.pem key.pem > ck.pem

Provision Profiles

  • create for Ad-Hoc and App Store

Xcode

Build Settings > Code Signing > Provisioning Profile

Archive > Organizer > Validate > Export

Ref: parse.com, raywenderlich.com, xuite blog, AndyYou's Blog, how to create apns certificates

results matching ""

    No results matching ""