GriffinLedingham / php-apple-signin

🗝 Decode Apple Sign In client tokens in PHP
BSD 3-Clause "New" or "Revised" License
200 stars 87 forks source link

file_get_contents not working on server #11

Open tdxius opened 4 years ago

tdxius commented 4 years ago

I have issues with file_get_contents on my server for some yet unknown reason. I get the error below.

PHP Warning: file_get_contents(https://appleid.apple.com/auth/keys): failed to open stream: Connection refused in php shell code on line 1

It works locally and on my staging server, but not on production. It might have to do something with the server settings. It works if I replace it with CURL. Did anyone experience the same issue?

I suggest using CURL instead of file_get_contents since it's more secure in general.