albeebe / PHP-FindMyiPhone

PHP class to locate, play sounds, and lock iOS devices
Other
79 stars 49 forks source link

SSL certificate problem / Hostname was NOT found in DNS cache #2

Open zor-el opened 8 years ago

zor-el commented 8 years ago

Hey albeebe, I think it's great that you are so devoted to this topic. There don't seem to be any actively maintained PHP libs to access the FIMP service. So your code was my "last hope"... Alas, it doesn't seem to work for me:

I can access the FMIP service via the PyICloudService library in Python, so I suppose it cannot be a problem with my network or my machine.

Any clue what might be happening?

beinnlora commented 7 years ago

Certificate error in PHP perhaps: What OS and PHP version are you using? I had to configure php.ini to add the line: curl.cainfo=/etc/ssl/certs/cacert.pem then download the https://curl.haxx.se/ca/cacert.pem and save to above store. If on windows, then replace with something like curl.cainfo="C:\certs\cacert.pem see stack exchange http://stackoverflow.com/questions/6400300/https-and-ssl3-get-server-certificatecertificate-verify-failed-ca-is-ok