Comment to Image upload problem
-
Check SSL certificate. Some free SSL certificates provided by hosting do not have CA name so SSL verification fails while Curl or file_get_contents try to make connection. Try changing SSL to one provided by Let's Encrypt which are also free. I also faced this issue and found that real culprit was SSL certificate. Changed it to Let's Encrypt and everything worked fine.