laravel / forge-cli

The Laravel Forge CLI.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't connect to laravel forge via cli ( cURL error 60: SSL certificate problem: unable to get local issuer certificate )

WaleedAlrashed opened this issue · comments

  • Forge CLI Version: 1.3.4
  • PHP Version: 8.0.11

Description:

Trying to connect to Laravel forge via CLI fails on both forge login and forge login --token=MY_PERSONAL_TOKEN

producing the following error:

An unexpected error occurred. Please report this issue here:
https://github.com/laravel/forge-cli/issues/new/choose

Steps To Reproduce:

forge login

produces this aforementioned error.

image

We sometimes see this when there is a problem with our customer's DNS settings on their local machine. Can you try using Google Public DNS? The Google Public DNS IP addresses (IPv4) are as follows:

  • 8.8.8.8
  • 8.8.4.4

Please let us know how it goes.

I had this same error on Windows10 today:
An unexpected error occured. Please report this issue here:
https://github.com/laravel/forge-cli/issues/new/choose

I confirmed my DNS servers on local machine are listing Google as noted by previous suggestion.
Solution for me was to try running forge login from vagrant, success, API token accepted on vagrant but not on Windows 10 host.