I am trying to have safari stop preventing me from visiting one of my dev machines with an invalid cert.
I am trying to use the solution in This Thread but install it using the CLI:
security add-trusted-cert -r trustRoot -k ~/Library/Keychains/login.keychain-db /tmp/test.cert
I am still receiving the “Safari Can’t Open the Page because Safari can’t establish a secure connection to the server” error.
I want it to be applied to the user so I don’t want to do the -d flag. And I know I am correctly downloading the cert because if I add the certificate and trust it through the OSX GUI, it works fine.
Another interesting note is that this solution works for my brave and firefox browsers, so it’s just safari that is giving me grief, but even safari works when I add the downloaded cert via the GUI.