file_get_contents with https hosts works just fine, except for a particular host (test api server from some company - ip whitelisted, can\'t give you URL to test). This rule
You could try to debug this with Wireshark -- you might get a better idea of what goes wrong, you should see which SSL error occurs.