You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

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
Question marked as Top-ranking reply

Posted on Jul 14, 2014 5:18 PM

Thanks for this. Having the same issue with the Microsoft Remote Desktop Client (RDC). You pointing out that it clears for a bit after rebooting helped.

Now I just force quit SecurityAgent and get back to work. Not a fix, but quicker than a full reboot.

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.

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.