So you have installed Laravel Herd and secured your sites. You are now ready to start developing your applications. You fire the Firefox browser. Boom! You get an error `Secure Connection Failed, Error code: SEC_ERROR_BAD_SIGNATURE.
About Laravel Heard : If you have not heard about Laravel Heard, I recommend you check out Announcing Laravel Herd by Marcel Pociot.
Even though Laravel Heard has added the certificate as "trusted" in the macOS keychain, Firefox maintains its own root certificate Store and does not see the "trusted" certificates.
Fixing the SEC ERROR BAD SIGNATURE
error
Press CMD + ,
to open Firefox settings. Use the search box to look for certificates
. Select View Certificates
.
When certificate manager dialog opens, select Authorities
tab then click import...
Locate Laravel Heard self signing authority located /Users/<username>/Library/Application Support/Herd/config/valet/CA/LaravelValetCASelfSigned.pem
where <username>
represent your user folder. Select the file and clock open
.
Tip : You can press
CMD + Shift + G
to go to the folder
Laravel valet : In case you are using Laravel Valet the path for the certificate is
/Users/<username>/.config/valet/CA/_LaravelValetCASelfSigned_.pem
In the new dialog, select Trust this CA to Identify website
. Now all *.test
website should be secured by defaults.
Dismiss all the open dialogs by clicking OK
.
Conclusion
If you follow the instructions, the error should disappear for all *.test
domains. It is important to note the location of the LaravelValetCASelfSigned.pem
as you may require in Android and iOS development (if it applies to you).