SecurityAgent hangs when authorizing changes to Certificate Trust Settings

I frequently encounter this totally blocking problem when attempting to authorize changes to Certificate Trust Settings.

This occurs when


  1. A dialog is presented when app such as Mail encounters a certificate whose identity is unknown.
  2. You choose to show details and select the option to "Always trust (server) when connecting to…"
  3. Click Connect
  4. A System authorization dialog appears and immediately hangs
  5. in Activity Monitor, "SecurityAgent" is shown as not responding.


At this point there is no legitimate way to shut down or restart the Mac other than forcing a power down, since (presumably) SecurityAgent is involved in the normal shutdown process.


After restarting, when the process happens again, I am able to successfully authorize the certificate. It only occurs if the computer has been up and running for a while (hours? days?)


User uploaded file

Mac OS X (10.6.7)

Posted on Jun 1, 2014 1:10 PM

Reply
31 replies

Jul 31, 2015 8:01 PM in response to Keeks E

I had this happen (again) to me earlier today. For me, this happens when working in Safari doing web development. Today when it happened, however, SecurityAgent didn't appear in activity monitor at all. So, in case anyone else runs into the same problem, I thought I'd add my solution here.


I opened terminal and ran:

ps -A | grep SecurityAgent


got the process number from that and ran:

kill <process number>


Had to do that twice.


Glad to see someone submitted a bug report. I'm going to do it too just to up the number of votes on this issue.

Sep 19, 2015 2:19 PM in response to Jason Sims

It's still an issue in 10.10.5 :-( Thanx for the tip about killing SecurityAgent from a terminal... that sure beats forcefully powering down the computer by holding the power button (which I had to as everything slowly starts being unresponsive once the security agent hangs). I really hope Apple fixes this in 10.11. Even Windows (7/8/10) doesn't have any bugs as annoying as this one...

Oct 29, 2015 2:56 AM in response to mskinner

I have found a solution to this, well it worked for me:


Different versions of the certificate I was trying to install already existed in the keychain, expired / old issues etc. After removing these old certificates using Keychain Access (Utilities folder in Applications) the certificate installed and didn't hang anything.


Hope this helps someone.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

SecurityAgent hangs when authorizing changes to Certificate Trust Settings

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.