Closed ubidefeo closed 2 years ago
It should be solved in the latest version (21.3.0) of installbuilder (changelog) @silvanocerza tested it and everything went smooth :butter:
Apparently, Silvano tested the firefox version of the agent, that is not affected by the problem, because it does not install the certificate. After another round of tests with Ubi we discovered some interesting things: The issue appears to be the same as: https://github.com/jorangreef/sudo-prompt/issues/137 here's the same guy: https://developer.apple.com/forums/thread/671582
@umbynos I still have this issue. I had to manually install the certificates and that created other issues with the IDE launching, requiring me to enter a password at every launch. @rsora , we need this to be prioritised, I'll do a screen capture of the installation process to add here
Upon further investigation this is something we can't seem to be able to tackle unless InstallBuilder allows shell scripts to be executed. There is a chain of trust which fails when launching an AppleScript invoking a Shell script.
For now, users who get this issue, please run this command in the terminal after installing the Agent
sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain /Users/$(whoami)/Applications/ArduinoCreateAgent/ArduinoCreateAgent.app/Contents/MacOS/ca.cert.pem
Bug Report
Describe the bug
When installing Arduino Create Agent for Safari (requires Security Certificates to be added to the Keychain), the installation completes but one error is raised. On Mac OS Big Sur/Monterey (M1, but could be the same on Intel) the user is requested to enter the password twice, but the second one raises a failure message
To Reproduce
Install Create Agent on (M1) Mac running Big Sur or Monterey
Expected behavior
No failure to add the certificate
Environment (please complete the following information):
Additional context
I have manually ran the script and it fails unless I launch it with
sudo
, at which point I am prompted with the password dialog and it installs correctlyFail
Success