Troubleshooting SSL Error when installing composer Asset plugin under Win7

Source: Internet
Author: User

When running composer under Win7, installing the asset plugin, SSL error occurs:

D:\data\www\mmoyu\symapp> composer global require "fxp/composer-asset-plugin:1.0.0" Loading composer repositories with package information    [Composer\Downloader\TransportException]    The  "https://packagist.org/packages.json" 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 install [--prefer- source ] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-p lugins] [--no-custom-installers] [--no-scripts] [--no-progress] [- v |vv|vvv|--ver bose] [-o|--optimize-autoloader]

No CA certificate installed caused!!!

CA Certificate: http://curl.haxx.se/docs/caextract.html

Then modify the php.ini file to add

openssl.cafile= D: /wamp/php/verify/cacert .pem

It's OK.

Troubleshooting SSL Error when installing composer Asset plugin under Win7

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.