swiftでpushKitを実装したいのですが、curlコマンドでエラーが起こってしまいます。
pemファイルもきちんとカレントディレクトリに置いているのですが。。
MacBook-puro:desktop $ curl -v -d '{"aps":{"alert":"hello"}}' --http2 --cert Certificates.pem:0000 https://api.development.push.apple.com/3/device/edfbc5031c925240a3c58bb14ad4fcf8b8d070328537f8c7956aa3f25b91273c * Trying 17.188.165.218... * TCP_NODELAY set * Connected to api.development.push.apple.com (17.188.165.218) port 443 (#0) * ALPN, offering h2 * ALPN, offering http/1.1 * could not load PEM client certificate, LibreSSL error error:02FFF002:system library:func(4095):No such file or directory, (no key found, wrong pass phrase, or wrong file format?) * Closing connection 0 curl: (58) could not load PEM client certificate, LibreSSL error error:02FFF002:system library:func(4095):No such file or directory, (no key found, wrong pass phrase, or wrong file format?) MacBook-puro:desktop $
どなたか助けてください。
よろしくお願いします。
回答1件
あなたの回答
tips
プレビュー