Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

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?

share|improve this question
add comment

2 Answers 2

up vote 4 down vote accepted

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

share|improve this answer
    
Didn’t know it’s possible to view an app’s open files via Activity Monitor — very nice! –  myhd Nov 8 '12 at 11:46
    
Thanks. You were completely correct, though, do you know if Apple has a higher resolution image of this somewhere? –  Jack Humphries Nov 8 '12 at 17:55
1  
Certificate Assistant.icns and droppedImage.png in /System/Library/CoreServices/Certificate Assistant.app/Contents/Resources/ are similar images at a higher resolution. –  interestinglythere Nov 11 '12 at 4:06
    
I finally managed to reproduce the file in the screenshot — it's a Quick Look-generated preview of certificate files. Making icons larger reveals the sad truth that,unfortunately, a higher-res image does not appear to exist. i.stack.imgur.com/QHufs.png –  interestinglythere Feb 13 '13 at 21:34
add comment

The following command in the terminal should search your entire hard drive for .icns files:

find / -iname '*.icns'
  • find is a command for finding files
  • / is the path name for the root directory (you could change this to a different path if you had some idea where the file was located`
  • -iname '*.icns' searches in a case insensitive (i for insensitive in iname) way for files that match .icns where * is a wildcard character

You could copy all *.icsns files on the hard drivein to the /tmp/ folder with a terminal command like this:

sudo find  / -iname '*.icns' -exec cp {} /tmp/ \;
  • sudo runs the command as the super user which may give you access to more directories
  • -exec means execute the following command where {} is replaced by the file returned and \; ends the command

You could then browse the /tmp folder in Finder until you find the file you are looking for. Then once you know its name, you could find it in the path list from the previous find command. or with a new find command. E.g., you learn it is called foo.icns, then enter find / -iname 'foo.icns'

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.