A operação SSL falhou com o código 1 | Certificado autoassinado na cadeia de certificados

0

Especificação: Windows 10 | Wamp | PHP 7.1.9

Tentando instalar o Laravel 5.5 usando a documentação fornecida on-line.

Sempre que executo " composer global require "laravel/installer" ", recebo o abaixo como saída:

Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 70 installs, 0 updates, 0 removals
  - Installing vlucas/phpdotenv (v2.4.0): Downloading (failed)
Downloading (failed)
Downloading (failed)    Failed to download vlucas/phpdotenv from dist: The "https://api.github.com/repos/vlucas/phpdotenv/zipball/3cc116adbe4b11be5ec557bf1d24dc5e3a21d18c" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed
Failed to enable crypto
failed to open stream: operation failed
    Now trying to download from source
  - Installing vlucas/phpdotenv (v2.4.0): Cloning 3cc116adbe


  [RuntimeException]
  Failed to clone https://github.com/vlucas/phpdotenv.git via https, ssh protocols, aborting.

  - https://github.com/vlucas/phpdotenv.git
    Cloning into 'C:\wamp\www\newsite\vendor\vlucas\phpdotenv'...
    fatal: unable to access 'https://github.com/vlucas/phpdotenv.git/': SSL certificate problem: self signed certific
  ate in certificate chain

  - [email protected]:vlucas/phpdotenv.git
    Cloning into 'C:\wamp\www\newsite\vendor\vlucas\phpdotenv'...
    Permission denied (publickey).
    fatal: Could not read from remote repository.

    Please make sure you have the correct access rights
    and the repository exists.


update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [--with-dependencies] [--with-all-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] [<packages>]...

Já experimentei muitas das soluções fornecidas on-line, e a maioria delas fala sobre isso:

Faça o download do novo cacert.pem e adicione-o a "C: \ wamp \ bin \ php \ php7.1.9 \ extras \ ssl \" e atualize o arquivo php.ini como:

curl.cainfo ="C:\wamp\bin\php\php7.1.9\extras\ssl\cacert.pem"
openssl.cafile="C:\wamp\bin\php\php7.1.9\extras\ssl\cacert.pem"

Alguma solução para isso?

    
por remedcu 18.05.2018 / 11:30

0 respostas