Unfortunately, I have no easy way to test it on Windows, so I am going to use VirtualBox for Linux here. Install vagrant , then:
$ vagrant box add laravel/homestead $ git clone https://github.com/laravel/homestead.git $ cd homestead $ git checkout v7.3.0 $ bash init.sh
I simplified Homestead.yaml bit (you might want to stick with the default settings):
--- ip: "192.168.10.10" provider: virtualbox folders: - map: /home/yuri/_/la1 to: /home/vagrant/code sites: - map: homestead.test to: /home/vagrant/code/public
Then:
$ mkdir -p ~/_/la1/public $ echo '<?php echo "it works";' > ~/_/la1/public/index.php $ vagrant up $ vagrant ssh -c 'ls /etc/nginx/sites-enabled' homestead.test $ vagrant ssh -c 'cat /etc/nginx/sites-enabled/homestead.test' server { listen 80; listen 443 ssl http2; server_name .homestead.test; root "/home/vagrant/code/public"; ... ssl_certificate /etc/nginx/ssl/homestead.test.crt; ssl_certificate_key /etc/nginx/ssl/homestead.test.key; }
As we can see, it has certificates in /etc/nginx/ssl :
$ vagrant ssh -c 'ls -1 /etc/nginx/ssl' ca.homestead.homestead.cnf ca.homestead.homestead.crt ca.homestead.homestead.key ca.srl homestead.test.cnf homestead.test.crt homestead.test.csr homestead.test.key
I tried to trust a server certificate all over the country, but that didn't work. It appeared on the Servers tab in Firefox Certificate Manager, but Firefox did not trust it. I might have added an exception, but trusting CA certificates look like the best option. A trusted CA certificate makes the browser trusted with any certificate that they issue (new sites running under Homestead). So, we are going to go with a CA certificate here:
$ vagrant ssh -c 'cat /etc/nginx/ssl/ca.homestead.homestead.crt' > ca.homestead.homestead.crt $ sudo trust anchor ca.homestead.homestead.crt $ trust list | head -n 5 pkcs11:id=%4c%f9%25%11%e5%8d%ad%5c%2a%f3%63%b6%9e%53%c4%70%fa%90%4d%77;type=cert type: certificate label: Homestead homestead Root CA trust: anchor category: authority
Then I added 192.168.10.10 homestead.test to /etc/hosts , restarted Chromium, and it worked:

PS I am running Chromium 65.0.3325.162 and Firefox 59.0.
Window
There seems to be no trust utility on Windows. According to Ryan, you can add the certificate as follows:
certutil -addstore -enterprise Root ca.homestead.homestead.crt
Read more about it here . And do not forget to restart your browser.
more detailed explanation of how this works
In Vagrantfile it requires scripts/homestead.rb , then runs Homestead.configure . This is the method that vagrant sets vagrant to make all necessary preparations.
Here we can see :
if settings.include? 'sites' settings["sites"].each do |site|
So, these two files create a certificate and nginx config respectively.
further reading
How to make an SSL certificate of a trusted SSL server?