valet install keeps asking for system certificates permissions on MacOS 11 Big Sur #1135
Replies: 27 comments 3 replies
-
Update: Seems it's not an infinite loop, apparently valet tries to secure all my sites I had on my previous MacOs Catalina. I noticed keychain (search for 'valet') results growing each time I grant permission. So after a 100 times or so valet finally installed. No idea where valet found the 'old' config tho. Maybe iCloud documents syncing? Manually running |
Beta Was this translation helpful? Give feedback.
-
Yes, MacOS syncs your keychain to iCloud. valet's If you are running into this "loop" of keychain prompts, it's probably because Valet is looping through all the Nginx site configs you've previously When switching Macs or wiping and reinstalling MacOS you will have a new Keychain for that Mac. MacOS will sync your keychain from iCloud so you'll have access to previous security data associated with your Apple ID. Keychain then attempts to be helpful by allowing you access to the "old" information but requires entering a password unless those details are in the currently unlocked keychain areas. In the end it's going to require your password for each domain certificate your keychain has. Go through the pain of it once and things should be fine moving forward. Best Option |
Beta Was this translation helpful? Give feedback.
-
Below are some additional thoughts about what one could explore. They may or may not be helpful to your specific situation. Manual Keychain Cleanup Other considerations You could also delete the |
Beta Was this translation helpful? Give feedback.
-
Similar issue for me.
It prompts me for the password for every site every time I run I've deleted from Keychain (although mine is not pulling from old configs—seems fine there), unsecured all, deleted the |
Beta Was this translation helpful? Give feedback.
-
@gigawatson What's the history of this Mac? (Being unable to replicate, I need to know more of what's happened in order to troubleshoot.) What MacOS version was on it previously? Did you upgrade-in-place? Does running |
Beta Was this translation helpful? Give feedback.
-
Complete wipe ~ month ago; didn't restore from backup (but linked the same Apple ID). Will try an uninstall with the |
Beta Was this translation helpful? Give feedback.
-
I am running into the same issue. Even after unsecuring all sites, removing the CA folder, I had to enter the password again for every site I secured again as well as all following Every time im am running an update on my computer (brew (php/composer), composer packages, etc.) I run Is there another solution? |
Beta Was this translation helpful? Give feedback.
-
Does running |
Beta Was this translation helpful? Give feedback.
-
I did a For shits and giggles, I tried the |
Beta Was this translation helpful? Give feedback.
-
What did you delete? You shouldn't be getting system certificate permission prompts to "add" if the keychain already has your most current Valet CA. |
Beta Was this translation helpful? Give feedback.
-
Is there certainty whether this is unique to Big Sur? (I'm not using it, so can't explore hands-on for that.) |
Beta Was this translation helpful? Give feedback.
-
Everything related to Valet.
I know, but I do. I've removed everything relating to Valet both on the computer and in iCloud. Yet, the problem remains. I don't know if this is strictly a Big Sur issue as I haven't used Valet in some time (although I do not remember this as an issue in previous OS versions). |
Beta Was this translation helpful? Give feedback.
-
Can you provide screenshots of what MacOS is prompting you for? Valet interacts with certs (for itself and for each site you secure), CAs, and sudo. |
Beta Was this translation helpful? Give feedback.
-
As you can see, I am prompted for my password 6 times which corresponds to the number of secured sites I have. |
Beta Was this translation helpful? Give feedback.
-
Thanks. That's helpful. |
Beta Was this translation helpful? Give feedback.
-
Might be related to Security->New Features in Big Sur: https://developer.apple.com/documentation/macos-release-notes/macos-big-sur-11_0_1-release-notes#Security |
Beta Was this translation helpful? Give feedback.
-
As someone with over 300 secured test sites.. this is pretty painful I had been putting off upgrading to Big Sur (from Mojave) for a long time.. but now that Apple requires apps to be signed with the new SDK, only available on Big Sur, I was forced to update and what a pain Has anyone figured out how to "use Apple Configurator 2 to create and install a configuration profile containing your root certificate" so that you are not asked to enter a password every single time you secure a domain as described as a possible workaround in the above link? I have a script that crawls all my dev projects and programatically adds and secures them all in a single pass. Used to work perfectly but now it wants me to type in my password 300 times and that makes me very very sad |
Beta Was this translation helpful? Give feedback.
-
Ooof. Just ran into this myself on an M1 Mac Mini running macOS 11.6. |
Beta Was this translation helpful? Give feedback.
-
This started occurring for me after upgrading to 12.0.1 Monterey yesterday. Luckily I only have 3 sites secured locally, but I switch php versions (7 and 8) rather often and run a |
Beta Was this translation helpful? Give feedback.
-
Same problem here after upgrading to Monterey. I have around 30 secured websites and I need to switch PHP versions multiple times a day. It's really annoying if you need to check one little thing and then you're just filling in your password for 3 minutes straight. I tried all of the above solutions but none of them worked, sadly... |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Does anyone have a fix for this? It's getting really annoying. |
Beta Was this translation helpful? Give feedback.
-
I think this might be related an Apple bug/feature. I've gone to keychain access > system keychains > system then selected multiple certificate and tried to delete them. The same pop when running valet install keeps popping up for me. |
Beta Was this translation helpful? Give feedback.
-
Same issue, love a real solution. |
Beta Was this translation helpful? Give feedback.
-
There's a workaround to resolve this problem until a permanent fix can be found, which I discovered based on a comment by opoplawski on this Apple support discussion: https://developer.apple.com/forums/thread/671582
Before you start using the below, please take a backup of your default trust settings with the following command:
Now if anything goes wrong you can rollback to it later. The steps to implement the above comment's suggestions are as follows:
This is my full
This will only ask for your password once per switch, which is a lot better than once for each certificate. |
Beta Was this translation helpful? Give feedback.
-
Can confirm @mitchdav 's solution works! Here is my implementation, just to confirm this setup works:
|
Beta Was this translation helpful? Give feedback.
-
Ik ben afwezig tot 2 januari mijn mail wordt niet gelezen, bij spoed kunt u contact opnemen met ***@***.***
|
Beta Was this translation helpful? Give feedback.
-
Clear description of your problem
When running
valet install
I keep getting popups from MacOS asking for permission to change system certificates. Even if I agree it keeps popping up until I cancel te install script.Expected behavior
Don't ask for permission or maybe just once or twice.
Current behavior
Looks like an infinite loop of permission requirement popups
Steps to Reproduce
Output of these steps
Then the popup loop starts
Possible solution
I noticed brew giving a notification about not being fully compatible with Big Sur yet. Not sure if that's related.
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 --versions | grep -E "(php|nginx|dnsmasq|mariadb|mysql|mailhog|openssl)(@\d\..*)?\s"
brew outdated
php -v
which -a php
php --ini
nginx -v
curl --version
php --ri curl
~/.composer/vendor/laravel/valet/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
/usr/local/opt/php/sbin/php-fpm -v
sudo /usr/local/opt/php/sbin/php-fpm -y /usr/local/etc/php/7.4/php-fpm.conf --test
ls -al ~/Library/LaunchAgents | grep homebrew
ls -al /Library/LaunchAgents | grep homebrew
ls -al /Library/LaunchDaemons | grep homebrew
Beta Was this translation helpful? Give feedback.
All reactions