When you get this error, open your php.ini config file. On Windows server, simply uncomment the following line:

;extension=php_openssl

and restart the webserver. The error should be resolved.