Skip to content

Instantly share code, notes, and snippets.

@shengslogar
Last active November 4, 2022 06:17
Show Gist options
  • Save shengslogar/d1e74d64def23228c8f4b6a22f555675 to your computer and use it in GitHub Desktop.
Save shengslogar/d1e74d64def23228c8f4b6a22f555675 to your computer and use it in GitHub Desktop.
Chrome not accepting Laravel Valet Self-Signed Cert on macOS Ventura

On this dark and bitter day, Friday, November 4th, 2022, Chrome randomly decided to start spitting out: NET::ERR_CERT_AUTHORITY_INVALID after almost two years of flawlessly running Laravel Valet with the same set of certs. Upgrading Valet, upgrading Homebrew dependencies, soft-reinstalling Chrome, soft-reinstalling Valet, deleting all certs from Keychain and re-adding them was to no avail.

Firefox and Safari continued to trust these certificates. Cached, perhaps?

In that process, I had deleted the "Laravel Valet CA Self Signed CN" certificate, and rerunning valet install and unsecuring/resecuring all sites didn't add this back, for some reason.

What DID work was going to ~/.config/valet/CA/, dragging LaravelValetCASelfSigned.pem into Keychain, and setting "When using this certificate" to "Always Trust". Not even a restart of Chrome was needed, and we're back in business.

See you back here in two years, apparently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment