curl -v \ > -d '{"aps":{"alert":"test","sound":"default"}}' \ > -H "apns-topic:com.com.shiftdrinks" \ > -H "apns-expiration: 1" \ > -H "apns-priority: 10" \ > --http2 \ > --cert ./certificates/prod-cert.pem \ > --key ./certificates/prod-key.pem \ > https://api.push.apple.com/3/device/7a19cbaaec55e8848c157e678d599513cf569b318ae03d3e875a963fa47fe6a4 * Trying 17.188.161.139... * TCP_NODELAY set * Connected to api.push.apple.com (17.188.161.139) port 443 (#0) * ALPN, offering h2 * ALPN, offering http/1.1 * Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH * successfully set certificate verify locations: * CAfile: /etc/ssl/cert.pem CApath: none * TLSv1.2 (OUT), TLS handshake, Client hello (1): * TLSv1.2 (IN), TLS handshake, Server hello (2): * TLSv1.2 (IN), TLS handshake, Certificate (11): * TLSv1.2 (IN), TLS handshake, Server key exchange (12): * TLSv1.2 (IN), TLS handshake, Request CERT (13): * TLSv1.2 (IN), TLS handshake, Server finished (14): * TLSv1.2 (OUT), TLS handshake, Certificate (11): * TLSv1.2 (OUT), TLS handshake, Client key exchange (16): * TLSv1.2 (OUT), TLS handshake, CERT verify (15): * TLSv1.2 (OUT), TLS change cipher, Client hello (1): * TLSv1.2 (OUT), TLS handshake, Finished (20): * TLSv1.2 (IN), TLS change cipher, Client hello (1): * TLSv1.2 (IN), TLS handshake, Finished (20): * SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384 * ALPN, server accepted to use h2 * Server certificate: * subject: CN=api.push.apple.com; OU=management:idms.group.533599; O=Apple Inc.; ST=California; C=US * start date: Jan 6 00:14:15 2018 GMT * expire date: Feb 5 00:14:15 2020 GMT * subjectAltName: host "api.push.apple.com" matched cert's "api.push.apple.com" * issuer: CN=Apple IST CA 2 - G1; OU=Certification Authority; O=Apple Inc.; C=US * SSL certificate verify ok. * Using HTTP2, server supports multi-use * Connection state changed (HTTP/2 confirmed) * Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0 * Using Stream ID: 1 (easy handle 0x7fd78c805800) > POST /3/device/7a19cbaaec55e8848c157e678d599513cf569b318ae03d3e875a963fa47fe6a4 HTTP/2 > Host: api.push.apple.com > User-Agent: curl/7.54.0 > Accept: */* > apns-topic:com.com.shiftdrinks > apns-expiration: 1 > apns-priority: 10 > Content-Length: 42 > Content-Type: application/x-www-form-urlencoded > * We are completely uploaded and fine * Connection state changed (MAX_CONCURRENT_STREAMS updated)! < HTTP/2 200 < apns-id: D135ED4C-75C4-1933-9A39-962C1B3BC680 < * Connection #0 to host api.push.apple.com left intact