I use Laravel Homestead and it works fine. Now I want to implement HTTPS on one of my sites.
I found that for this you just need to add ssl: true to Homestead.yaml and then run vagrant reload --provision.
I see that it works when I run a command that shows:
==> homestead-7: Running provisioner: shell... homestead-7: Running: script: Creating Certificate: laravel-cashier.local ==> homestead-7: Running provisioner: shell... homestead-7: Running: script: Creating Site: laravel-cashier.local
And in /etc/nginx/ssl , I see that these 3 files are created:
-rw-r--r-- 1 root root 683 Jul 19 16:26 laravel-cashier.local.cnf -rw-r--r-- 1 root root 1269 Jul 19 16:26 laravel-cashier.local.crt -rw-r--r-- 1 root root 1704 Jul 19 16:26 laravel-cashier.local.key
But what's next?
When I try to start a site using https:



Do I need to take any other steps?
Note. I am using the latest version of Homestead version 2.1.0.
I have already seen many posts, but I think they are too old and do not provide the exact steps to achieve the result:
https://laracasts.com/discuss/channels/tips/tip-how-to-enable-ssl-in-homestead-20
https://laracasts.com/discuss/channels/servers/homestead-ssl
Laravel Homestead - SSL Setting
source share