推送 houston
安装
$ gem install houston
导出p12
- 打开钥匙串
- 导出证书

p12 转到 pem
证书不加密
$ openssl pkcs12 -in cert.p12 -out apple_push_notification.pem -nodes -clcerts
证书加密
$ openssl pkcs12 -in cert.p12 -out apple_push_notification.pem -aes256 -clcerts
推送命令
$ apn push "<token>" -c /path/to/apple_push_notification.pem -m "Hello APNS"
token中间不要有空格
网友评论