WP_HTTP_Fsockopen does not verify SSL certificates
|Reported by:||rmccue||Owned by:|
mdawaffe's talk at WCSF mentioned that fsockopen doesn't verify SSL certificates. The talk lead me to investigate Requests and see if I could fix that.
It turns out it is possible to do this with stream context options, but requires using stream_context_create rather than fsockopen. (We can also allow passing in a custom certificate file this way, which neither the cURL nor fsockopen transports allow at the moment.)
Example fix has been committed to Requests, I can port over if you'd like.