Closed wturrell closed 1 month ago
@wturrell I was having the same issue, and the solutions discussed on #1487 didn't help me either. Reinstalling Valet did fix it, though, just in case you haven't tried it yet.
Same issues here since upgrading to Valet v4!
Fixed by running following commands:
rm ~/.config/valet/CA/*
valet install
There is no command currently to renew the self-signed Certificate Authority cert. If you ran valet install
prior to version
v2.18.1 (fix), you will likely run into this issue after upgrading to v4.7.0 or later. The CA back then had a validity of 368 days. Running valet install
on a machine after that version will generate a valid CA for 20 years.
I'll take a look at adding a way to renew the CA cert automatically if it's expired. Although, it's should be an increasingly less common scenario, it will likely hit people who have had Valet installed a few years (or just running an outdated version for awhile).
Description
TL;DR: my certificates for the individual *.test domains are fine, but suddenly I have a "Laravel Valet CA Self Signed CN" with an expiry of 1 July 2021, so no sites will load.
I've been reading https://github.com/laravel/valet/issues/1487 …
Opening Keychain Access confirms the certificate is expired, as does running:
I have upgraded Valet from 4.7.1 to 4.8.0.
I followed this bit of the instructions:
All that does is (correctly) remove the old cert, but then it puts it back again. How can I actually renew it?
I tried
valet renew
(as well asunsecure
andsecure
) but this didn't help.Thanks!
Steps To Reproduce
-
Diagnosis
sw_vers
valet --version
cat ~/.config/valet/config.json
cat ~/.composer/composer.json
composer global diagnose
composer global outdated
ls -al /etc/sudoers.d/
brew config
brew services list
brew list --formula --versions | grep -E "(php|nginx|dnsmasq|mariadb|mysql|mailhog|openssl)(@\d\..*)?\s"
brew outdated
brew tap
php -v
which -a php
php --ini
nginx -v
curl --version
php --ri curl
/opt/homebrew/bin/ngrok version
ls -al ~/.ngrok2
brew info nginx
brew info php
brew info openssl
openssl version -a
openssl ciphers
sudo nginx -t
which -a php-fpm
/opt/homebrew/opt/php/sbin/php-fpm -v
sudo /opt/homebrew/opt/php/sbin/php-fpm -y /opt/homebrew/etc/php/8.2/php-fpm.conf --test
ls -al ~/Library/LaunchAgents | grep homebrew
ls -al /Library/LaunchAgents | grep homebrew
ls -al /Library/LaunchDaemons | grep homebrew
ls -al /Library/LaunchDaemons | grep "com.laravel.valet."
ls -aln /etc/resolv.conf
cat /etc/resolv.conf
ifconfig lo0
sh -c 'echo "------\n/opt/homebrew/etc/nginx/valet/valet.conf\n---\n"; cat /opt/homebrew/etc/nginx/valet/valet.conf | grep -n "# valet loopback"; echo "\n------\n"'
sh -c 'for file in ~/.config/valet/dnsmasq.d/*; do echo "------\n~/.config/valet/dnsmasq.d/$(basename $file)\n---\n"; cat $file; echo "\n------\n"; done'
sh -c 'for file in ~/.config/valet/nginx/*; do echo "------\n~/.config/valet/nginx/$(basename $file)\n---\n"; cat $file | grep -n "# valet loopback"; echo "\n------\n"; done'