go to bug id or search bugs for
SSL stream context does not provide the possibility to put client certificate authority list (via the SSL_CTX_set_client_CA_list() OpenSSL function) for a stream server.
This bug report was originated in the SO question : http://stackoverflow.com/questions/28696886/how-to-set-trusted-certificate-authorities-list-to-socket-client-in-php
Add a "ca_list" option in the SSL stream contexts.
Add a Patch
Add a Pull Request
This is corrected in the following commit to PHP-5.6 and master:
There is not a new "ca_list" context option. Instead, simply pass the "cafile" context option as before and PHP will automatically pull the requisite names from this file (which you need to supply anyway so you can verify peer certs).
The new commit window for the forthcoming 5.6.7 release has already passed so this change won't show up in distributed binaries until PHP 5.6.8 is released in a few weeks. In the meantime you can build against the current 5.6 branch or download a windows snapshot build from here:
You'll need to wait a few hours until a new build with the latest changes is generated.
Related To: Bug #73609