Hello, I can't send push to the device using deviceToken after installing the card.
curl -v
-d '{"aps":{"alert":"me new message","badge":2}}'
-H "apns-topic: com.bonushelp.me"
-H "apns-priority: 10"
--http2
--cert-type P12 --cert Cert_push.p12:<password>
https://api.push.apple.com/3/device/39ee0e25a5756707b73681ce4278ffc1
- Trying 17.188.181.10:443...
- Connected to api.push.apple.com (17.188.181.10) port 443 (#0)
- ALPN: offers h2,http/1.1
- (304) (OUT), TLS handshake, Client hello (1):
- CAfile: /etc/ssl/cert.pem
- CApath: none
- (304) (IN), TLS handshake, Server hello (2):
- (304) (IN), TLS handshake, Unknown (8):
- (304) (IN), TLS handshake, Request CERT (13):
- (304) (IN), TLS handshake, Certificate (11):
- (304) (IN), TLS handshake, CERT verify (15):
- (304) (IN), TLS handshake, Finished (20):
- (304) (OUT), TLS handshake, Certificate (11):
- (304) (OUT), TLS handshake, CERT verify (15):
- (304) (OUT), TLS handshake, Finished (20):
- SSL connection using TLSv1.3 / AEAD-CHACHA20-POLY1305-SHA256
- ALPN: server accepted h2
- Server certificate:
- subject: CN=api.push.apple.com; O=Apple Inc.; ST=California; C=US
- start date: Dec 19 17:22:50 2022 GMT
- expire date: Jan 18 17:22:49 2024 GMT
- subjectAltName: host "api.push.apple.com" matched cert's "api.push.apple.com"
- issuer: CN=Apple Public Server RSA CA 12 - G1; O=Apple Inc.; ST=California; C=US
- SSL certificate verify ok.
- using HTTP/2
- h2h3 [:method: POST]
- h2h3 [:path: /3/device/39ee0e25a5756707b73681ce4278ffc1]
- h2h3 [:scheme: https]
- h2h3 [:authority: api.push.apple.com]
- h2h3 [user-agent: curl/7.88.1]
- h2h3 [accept: /]
- h2h3 [apns-topic: com.bonushelp.me]
- h2h3 [apns-priority: 10]
- h2h3 [content-length: 44]
- h2h3 [content-type: application/x-www-form-urlencoded]
- Using Stream ID: 1 (easy handle 0x11d812c00)
POST /3/device/39ee0e25a5756707b73681ce4278ffc1 HTTP/2 Host: api.push.apple.com user-agent: curl/7.88.1 accept: / apns-topic: com.bonushelp.me apns-priority: 10 content-length: 44 content-type: application/x-www-form-urlencoded
- We are completely uploaded and fine
< HTTP/2 400 < apns-id: B0F501E5-606E-D873-8E0A-E24D0ECEB456 <
- Connection #0 to host api.push.apple.com left intact
{"reason":"BadDeviceToken"}