Sometimes xampp or Wamp Server and windows 7, 8, 8.1 or 10 user may face a unwanted problem when installing PHP Composer. You may familiar with the following error.
Download failed: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
file_get_contents(): Failed to enable crypto
file_get_contents(https://getcomposer.org/composer.phar): failed to open stream: operation failed
But How to Solve it?
You can try two Solution:
01. Solution One:
******************************
You should download a global SSL Certificate:
Link: http://curl.haxx.se/ca/cacert.pem
Then, update you php.ini file by appending following lines to it:
openssl.cafile=/anywhere-you-like/cacert.pem
02. Solution Two:
*******************************
Use Latest Version of xampp or Wamp Server
Use Latest Version of Operating system
Good Luck.
Watch video PHP Composer SSL Operation Failed with code 1. OpenSSL_Error messages online without registration, duration hours minute second in high quality. This video was added by user Server Stack 30 August 2016, don't forget to share it with your friends and acquaintances, it has been viewed on our site 36,361 once and liked it 60 people.