Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

davy_yg's avatar

Installing laravel/passport on laravel framework 11.0

When trying to install laravel/passport on laravel framework 11.0, I got the following messages:

D:\xampp82\htdocs\hyundai_unite_11>composer require laravel/passport https://repo.packagist.org could not be fully loaded (curl error 60 while downloading https://repo.packagist.orgrg/packages.json: SSL certificate problem: unable to get local issuer certificate), package information was loaded from the local cache and may be out of date ./composer.json has been updated Running composer update laravel/passport Loading composer repositories with package information https://repo.packagist.org could not be fully loaded (curl error 60 while downloading https://repo.packagist.org/packages.json: SSL certificate problem: unable to get local issuer certificate), package information was loaded from the local cache and may be out of date

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

In CurlDownloader.php line 389:

curl error 60 while downloading https://repo.packagist.org/p2/psr/http-factory-implementat ion.json: SSL certificate problem: unable to get local issuer certificate

require [--dev] [--dry-run] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--fixed] [--no-suggest] [--no-progress] [--no-update] [--no-install] [--no-audit] [--audit-format AUDIT-FORMAT] [--update-no-dev] [-w|--update-with-dependencies] [-W|--update-with-all-dependencies] [--with-dependencies] [--with-all-dependencies] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-m|--minimal-changes] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--] [...]

D:\xampp82\htdocs\hyundai_unite_11>

Any idea how to solve this problem?

0 likes
2 replies
LaryAI's avatar

The error you're encountering:

curl error 60 while downloading https://repo.packagist.org/packages.json: SSL certificate problem: unable to get local issuer certificate

is not specific to Laravel or Passport, but rather to Composer and your local PHP/cURL setup. It means your PHP installation cannot verify SSL certificates when trying to download packages.

Here's how to fix it:


1. Download the latest cacert.pem

  1. Go to: https://curl.se/ca/cacert.pem
  2. Download and save this file somewhere on your computer, for example: C:\xampp\php\extras\ssl\cacert.pem

2. Update your php.ini

  1. Open your php.ini file (usually found at C:\xampp\php\php.ini).
  2. Search for this line:
    ;curl.cainfo =
    
    and change it to:
    curl.cainfo = "C:\xampp\php\extras\ssl\cacert.pem"
    
  3. Also, find:
    ;openssl.cafile=
    
    and change it to:
    openssl.cafile="C:\xampp\php\extras\ssl\cacert.pem"
    
  4. Save the file.

3. Restart Apache

After editing php.ini, restart Apache from the XAMPP control panel so the changes take effect.


4. Try Again

Now, try running your Composer command again:

composer require laravel/passport

Note on Laravel 11 Compatibility

As of early 2024, laravel/passport is compatible with Laravel 11, but always check the official Passport repo for the latest version and compatibility notes.


Summary:
This is a local SSL certificate issue with Composer/PHP, not a Laravel or Passport bug. Download the latest cacert.pem, update your php.ini, and restart Apache. This should resolve your issue.

Please or to participate in this conversation.