APNs push notification with macOS Sierra : <p>I'm trying to send my phone a push notification using the simple PHP tool which connects to <code>ssl://gateway.push.apple.com:2195</code>, but the connection fails with the following errors:</p>

<pre><code>Warning: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed in &lt;Users/.../file.php&gt; on line 30

Warning: stream_socket_client(): Failed to enable crypto in &lt;Users/.../file.php&gt; on line 30

Warning: stream_socket_client(): unable to connect to ssl://gateway.sandbox.push.apple.com:2195 (Unknown error) in &lt;Users/.../file.php&gt; on line 30
Failed to connect: 0 
</code></pre>

<p>This all started since I upgraded to the GM Seed of macOS Sierra.
What's new in macOS Sierra that affects SSL connections?
How do I resolve this?</p>
