我正在尝试使用连接到的简单 PHP 工具向我的手机发送推送通知ssl://gateway.push.apple.com:2195
,但连接失败并出现以下错误:
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 <Users/.../file.php> on line 30
Warning: stream_socket_client(): Failed to enable crypto in <Users/.../file.php> on line 30
Warning: stream_socket_client(): unable to connect to ssl://gateway.sandbox.push.apple.com:2195 (Unknown error) in <Users/.../file.php> on line 30
Failed to connect: 0
这一切都是从我升级到 macOS Sierra 的 GM Seed 开始的。macOS Sierra 中有哪些影响 SSL 连接的新功能?我该如何解决这个问题?