Hi,
I got this error, when i tried install the magento using composer.
Loading composer repositories with package information
The "https://packagist.org/packages.json" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:
error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
Failed to enable crypto
failed to open stream: operation failed
https://packagist.org could not be fully loaded, package information was loaded from the local cache and may be out of date
Installing dependencies (including require-dev)
"
[ComposerRepositoryRepositorySecurityException]
The contents of http://packagist.org/p/zendframework/zend-stdlib$74ad0e9643394fc90ed75b6eef136be1d5b16fd5f3e248ca48e32d133aa15cc4.
json do not match its signature. This should indicate a man-in-the-middle attack. Try running composer again and report this if yo
u think it is a mistake.
install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [--ignore-platform-reqs] [packages1] ... [packagesN]
Looks like your composer wanted SSL3 and packagist disabled it.
Make sure you have the latest composer, and php/OpenSSL libs.
If that's not it, maybe it's really a man-in-the-middle attack.
In any case the problem is with composer, not magento.
Hi @vsikarwar, have you resolved the issue?
Hi,
Yes I have fixed the issue. That was the composer problem.
Now I have successfully resolved the issue.
Can I go live with the code.
@vsikarwar, glad to see the issue has been resolved. With this I will proceed with closing this question. In case you have any other questions, feel free to open a GitHub issue.
@vinaysikarwar what did you do to resolve your issue?
@vinaysikarwar can you please share, how you addressed this issue?
@hirensoni2005 I can't remember what I did exactly. But have you tried clearing your composer cache?
@hirensoni2005 I can't remember what I did exactly. But have you tried clearing your composer cache?
Should be located in ~/.composer
Thank you for quick response, but it didn't work. Anyways I will workout on this and update the solution here.. Thank you @alexkoepke
Most helpful comment
@vinaysikarwar what did you do to resolve your issue?