(this guide focuses on Laravel's development server, Homestead)
For example; Homestead by default creates SSL certificates for your local websites, however you have to always click "Proceed/Trust/Make exception" or trust every website's certificate manually before being able to visit the site. By installing the Root CA (roughly: the certificate which is used to create the website certificates), you instantly trust all certificates that are derived from it.
Normally on an Nginx webserver (e.g. on Homestead) the certificates are stored in the /etc/nginx/ssl
folder. You see all the certificates that are generated for your local websites, including 3 crucial files:
ca.homestead.homestead.cnf
ca.homestead.homestead.crt
ca.homestead.homestead.key
We are only going to need the .crt
file. Download it somewhere:
scp vagrant@192.168.10.10:/etc/nginx/ssl/ca.homestead.homestead.crt ~/Downloads/ca.homestead.homestead.crt
sudo trust anchor --store ~/Downloads/ca.homestead.homestead.crt
sudo update-ca-trust
- Double-click the file
- Click Install Certificate... button
- Select Current User and click Next
- Select Place all certificates in the following store and click Browse...
- Select Trusted Root Certification Authorities and click OK
- Click Next
- Click Finish
Firefox initially doesn't care about your OS's certificate store, so you have to force it:
- Go to
about:config
- Read and accept warning
- Search for
security.enterprise_roots.enabled
and set it totrue
- Go to ☰ > Preferences > Privacy & Security
- Under Security > Certificates (at the botom) click the Security devices... button
- In the popup, click the Load button
- In Module Name insert
p11-kit-trust
- In Module filename insert the path of
p11-kit-trust.so
- You can find this by executing
locate p11-kit-trust.so
in your terminal
- You can find this by executing
- Click OK and OK