ane*_*tis 8 openssl apple-push-notifications node.js onesignal
我想将 APNS 证书的 .p12 文件发送到 One Signal API,但我需要首先将 .p12 文件转换为 base64 字符串。我怎么做?API 文档如下: https: //documentation.onesignal.com/reference#create-an-app
Nun*_*ves 17
如果您使用的是 Mac,则可以使用 Mac 附带的 base64 实用程序。
base64 -i certificate.p12 -o outputfile
Run Code Online (Sandbox Code Playgroud)
new Buffer(fs.readFileSync(__dirname + "/ios_push_certificate.p12")).toString('base64')
Run Code Online (Sandbox Code Playgroud)
毕竟这是正确的脚本。
| 归档时间: |
|
| 查看次数: |
16582 次 |
| 最近记录: |