-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stream_socket_client could not create peer certificate in the context option #5851
Comments
@caolixiang does this work on PHP5 and/or PHP7? @fredemmott is this related to some of the stream stuff you did earlier? (Just looking for info on how we should triage this :)) |
It's in the same area of code, but not directly related. |
I mean to say, is "PHP Incompatibility" an accurate tag here, or should it be triaged as something else? |
@jwatzman it works on PHP5 and I am not sure if it works on PHP7. |
This is still an issue in October 2016. This is potentially also effecting a potential security issue with an application I'm working with. The application internally verifies and logs SSL certs for external site APIs that it interacts with. Here is a very small test case that I'm using internally just to show the issue with HHVM.
Outputs:
|
Although setting both capture_peer_cert/peer_certificate to true, when a stream_socket_client created, it doesn't create peer certificate in context option.
My hhvm edition is 3.9.0-dev and find the same problem in both 3.8.0 and 3.8.1.
dd($result)
In application the peer_certificate is undefined when I try to fetch it.
The text was updated successfully, but these errors were encountered: