Verifying a self-signed certificate on the local Laravel Homestead server

I have completed the following steps to create an SSL certificate, so I can run local test sites through Laravel Homestead using https.

Adding https certificate to homestead vm

Everything is fine, but when viewing the test domain via https: // , I get a red X in the address bar of Chrome. It says that the certificate is not trusted due to self-signing and is not verified by third parties.

Is there a way I can figure this out? So that my HTTPS local domains can trust Chrome and work as if it were online?

+3
source share
2 answers

Chrome no longer lets you export a certificate. You need to either use another browser that supports this function (for example, Firefox), or simply copy the generated certificate to the shared directory from your home computer so that you can then import it and trust it in the keychain.

# where I share all homestead certs with the host machine mkdir /home/vagrant/Code/.certs/ cp -vf /etc/nginx/ssl/homestead.app.cert /home/vagrant/Code/.certs 

On the local host, open the certificate file and import it into the system keychain. After importing, open it and set the trust level to "Always trust."

Set the trust level to "Always trust"

Restart Chrome and you're done.

+4
source

You must trust your self-signed certificate in chrome to remove the red cross message.

There are several guides where you can trust a self-signed certificate in chrome. For example, fooobar.com/questions/12817 / ....

+1
source

Source: https://habr.com/ru/post/1273645/


All Articles