Composer error: SSL Operation failed with code 1

Asked

Viewed 319 times

1

I found some topics in the OS in English but could not solve the problem by la.

Any library, Fw, anything in case I try to install with Composer, I get this SSL error.

NOTE: I have SSL installed on localhost

When I give a require on symfony for example, it returns me this:

Warning: Module 'openssl' already loaded in Unknown on line 0


  [Composer\Downloader\TransportException]
  The "https://packagist.org/packages.json" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:
  error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
  Failed to enable crypto
  failed to open stream: operation failed


require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-suggest] [--no-update] [--no-scripts] [--update-no-dev] [--update-with-dependencies] [--update-with-all-dependencies] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--] [<packages>]...

Someone would know how to solve?

Thank you!

  • You’re going through some firewall?

  • I don’t think so, Lucas...

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.