Skip to content

Instantly share code, notes, and snippets.

@v4n
v4n / aps_certificates_howto.md
Created June 25, 2019 19:44 — forked from telekosmos/aps_certificates_howto.md
Preparing APS certificates

After requesting the certificate from Apple (to do this, go to Apple Developer site -> APNs Auth key -> [+]), download the .cer file (usually named aps_production.cer or aps_development.cer) from the iOS Provisioning Portal, save in a clean directory, and import it into Keychain Access.

It should now appear in the keyring under the "Certificates" category, as Apple Push Services. Inside the certificate you should see a private key (only when filtering for the "Certificates" category).

Export this private key as a .p12 file:

  • Right click in the certificate we are interested in Keychain and select Export...
  • Accept the default .p12 file format and then click Save
@v4n
v4n / data.gif
Last active June 12, 2019 18:02
data.gif

Keybase proof

I hereby claim:

  • I am v4n on github.
  • I am v4n (https://keybase.io/v4n) on keybase.
  • I have a public key ASDE8FXqQGog6mpH1Kjalas6Dsag1DlfOnftjoLAhpdNJgo

To claim this, I am signing this object:

@v4n
v4n / gist:ffef2045282072bc1eace975b86c703e
Created August 5, 2016 23:57 — forked from trevrosen/gist:049a6880c3f53b71b8cd
Example of using goroutines and channels to cleanly handle SIGINT
package main
import (
"fmt"
"log"
"os"
"os/signal"
"time"
)