Closed jacobgraf closed 2 years ago
It looks like we need to update the diagnose
command, but could you let me know what the output of ls ~/.config/valet/Certificates
looks like? Mainly, are there four files in there for the domain you just tried to secure?
This definitely isn't broken globally, as... wait for it... it works on my machine. lol.
But we'll see if we can figure out why it's not working for you.
When running valet secure within a parked site directory, the command never finishes. No other output is given.
I think this is a duplicate of https://github.com/laravel/valet/issues/1224. In this case, Valet does create certificates and everything, but it hangs on the step to mark it as trusted. (where it's supposed to show a password prompt, but it never does)
We still couldn't figure out the actual reason behind this, but few people have reported, that it usually gets fixed after a reboot.
So maybe try rebooting your machine then re-run valet secure
and let us know if it fixes the issue.
@jacobgraf can you confirm this works after a reboot?
Wow. Yes, that did work. After rebooting, I got the following prompt after running the command. I wasn't getting this before. All is well, but maybe this is worth adding to the docs. https://cln.sh/qGHwO4GVQeRPdviKO36i
@jacobgraf good idea: https://github.com/laravel/docs/pull/7854
Description:
When running
valet secure
within a parked site directory, the command never finishes. No other output is given. Afterwards, looking atvalet parked
shows that the site has SSL and is secured, but it is not accessible via https.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
~/.composer/vendor/laravel/valet/bin/ngrok version
~/.composer/vendor/laravel/valet/bin/ngrok-arm 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.0/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'