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

readfordna's avatar

Say Hello to Laravel Homestead 2.0 - vagrant box add laravel/homestead - failed install

Good evening,

I have been watching the above mentioned course when I attempt to add the vagrant box. I am running Windows 7 64 Bit. Both Vagrant and Oracle VM Virtual Box appeared to installed ok.

I get the following error:

The box 'laravel/homestead' could not be found or could not be accessed in the remote catalog. If this is a private box on HashiCorp's Atlas, please verify you're logged in via vagrant login. Also, please double-check the name. The expanded URL and error message are shown below:

URL: ["https://atlas.hashicorp.com/laravel/homestead"] Error: SSL certificate problem: unable to get local issuer certificate More details here: http://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle of Certificate Authority (CA) public keys (CA certs). If the default bundle file isn't adequate, you can specify an alternate file using the --cacert option. If this HTTPS server uses a certificate signed by a CA represented in the bundle, the certificate verification probably failed due to a problem with the certificate (it might be expired, or the name might not match the domain name in the URL). If you'd like to turn off curl's verification of the certificate, use the -k (or --insecure) option.

Can anyone point me in the right direction to solve this issue.

Thanking you in advance for your help with this matter.

Warm regards Nigel

0 likes
2 replies
bashy's avatar

It's because cURL can't verify the SSL cert by grabbing the trusted certs from the providers. Normally to do with DNS or being blocked.

Ubuntu

sudo nano /etc/resolvconf/resolv.conf.d/base

Add in this and remove any entries that have nameserver

# Google DNS
nameserver 8.8.8.8
nameserver 8.8.4.4

Then to update the /etc/resolv.conf file, run this

sudo resolvconf -u
Chunky's avatar

You should be able to bypass SSL requirements with the --insecure switch: vagrant box add --insecure laravel/homestead

Please or to participate in this conversation.