MacOS – How to find the location of an icon file on OS X

macos

I am trying to find where the icon file is located for certificates on OS X. This is a picture of what I'm looking for:

enter image description here

Do you know where OS X stores the icon for this file?

Best Answer

I couldn't find that exact icon because I wasn't able to produce such a certificate file. If you can tell me where to find such a file, I might have better luck.

I was, however able to find a similar image. It's located at /System/Library/Frameworks/SecurityInterface.framework/Versions/A/Resources/CertLargeStd.png (at least for Mac OS 10.8.2) and it looks like this:
certificate icon
(CertLargeStd@2x.png is the one used on Retina screens.)

This is the image shown when you view a certificate in Keychain Access or Safari:
safari screenshot

To find this image, I opened up the Safari panel above. I examined Safari's open files via Activity Monitor, and the image in question was there. Activity Monitor screenshot