PHP Composer SSL Operation Failed with code 1. OpenSSL_Error messages

Опубликовано: 30 Август 2016
на канале: Server Stack
36,361
60

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.


Смотрите видео PHP Composer SSL Operation Failed with code 1. OpenSSL_Error messages онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Server Stack 30 Август 2016, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 36,361 раз и оно понравилось 60 людям.