I was working on a Laravel/Statamic site. Out of the blue, Firefox complained that the "issuer certificate" had expired.
I had added the Laravel Valet Self Signed CN issuer certificate a couple of years ago, and now it apparently had expired.
Googling the issue proved to be very difficult, but eventually I found this issue in the laravel/valet repo:
And it seems that it was fixed in this pull request, where they (correctly, in my book) deemed it a bit silly that this certificate ever expires:
So what I did, was this:
Delete everyting in
valet restart (probably not necessary, but just in case)
cd into my project and doing a
valet secure to regenerate the root certificates
Open Firefox preferences → Privacy and security, scroll down to Sertificates (almost at the bottom) and click the button Show certificates…
Choose the Issuers tab, find Laravel Valet CA Self Signed CN and delete it.
Click on the Import… button, navigate to
~/.config/valet/CA/ (press Cmd+Shift+G in the file dialog to type the hidden location) and import the newly generated certificate.
Tick the checkboxes in the dialog that appears and press OK.
Assuming you are on a recent version of Valet (which you should be!), the expiry date for the new certificate should be set to twenty years in the future. So it's not like it never expires, but by then you really should consider getting a new computer!