$context = array( 'ssl' => array( 'local_cert' => GLOBAL_SSL_PEM, // 或者crt文件 'local_pk' => GLOBAL_SSL_KEY, 'verify_peer' => false ) ); ...