Open Homestead.yaml file and add SSL = true
it will create crt file in /etc/nginx/ssl
Sample Homestead.yaml file
ip: "192.168.10.10"memory: 2048cpus: 2provider: virtualboxauthorize: ~/.ssh/id_rsa.pubkeys:- ~/.ssh/id_rsafolders:- map: /Users/junedc/Desktop/AMyProject/
to: /home/vagrant/code1/
- map: /Users/junedc/Desktop/AMyProject2/
to: /home/vagrant/code2/
sites:- map: backend.test
to: /home/vagrant/code1/backend_template/public
- map: laravel8.test
to: /home/vagrant/code2/laravel8/public
ssl:- true
Some commands to generate ssh key, create a certificate, reload the new settings
xxxx
ssh-keygen -t rsavagrant upvagrant sshcp cafefrends.test.crt /home/vagrant/code/cafefrendsvagrant haltvagrant reload --provision