magento2 icon indicating copy to clipboard operation
magento2 copied to clipboard

Error in installing with composer

Open vinaysikarwar opened this issue 11 years ago • 9 comments

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)

"
[Composer\Repository\RepositorySecurityException]
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]

vinaysikarwar avatar Dec 19 '14 08:12 vinaysikarwar

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.

nyov avatar Dec 19 '14 11:12 nyov

Hi @vsikarwar, have you resolved the issue?

maksek avatar Dec 29 '14 15:12 maksek

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.

vinaysikarwar avatar Jan 23 '15 05:01 vinaysikarwar

@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.

sshrewz avatar Feb 04 '15 17:02 sshrewz

@vinaysikarwar what did you do to resolve your issue?

alex-koepke avatar Jun 24 '16 18:06 alex-koepke

@vinaysikarwar can you please share, how you addressed this issue?

hi-soni avatar Jan 17 '17 13:01 hi-soni

@hirensoni2005 I can't remember what I did exactly. But have you tried clearing your composer cache?

alexkoepke avatar Jan 17 '17 13:01 alexkoepke

@hirensoni2005 I can't remember what I did exactly. But have you tried clearing your composer cache?

Should be located in ~/.composer

alexkoepke avatar Jan 17 '17 13:01 alexkoepke

Thank you for quick response, but it didn't work. Anyways I will workout on this and update the solution here.. Thank you @alexkoepke

hi-soni avatar Jan 17 '17 13:01 hi-soni