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

Safari 4.0.2 code sign problem

I just installed Safari Version 4.0.2 (5530.19) from Safari4.0.2Leo.dmg obtained from http://www.apple.com/safari/download/

After the required reboot, I got the following in Terminal:

LZsMacPro: ~] codesign -vvvv /Applications/Safari.app/
/Applications/Safari.app/: a sealed resource is missing or invalid
/Applications/Safari.app/Contents/Resources/English.lproj/Bookmarks.nib/classes. nib: resource added
/Applications/Safari.app/Contents/Resources/English.lproj/Bookmarks.nib/info.nib : resource added
/Applications/Safari.app/Contents/Resources/English.lproj/Browser.nib/classes.ni b: resource added
/Applications/Safari.app/Contents/Resources/English.lproj/Browser.nib/info.nib: resource added
/Applications/Safari.app/Contents/Resources/English.lproj/GeneralPreferences.nib /classes.nib: resource added
/Applications/Safari.app/Contents/Resources/English.lproj/GeneralPreferences.nib /info.nib: resource added
/Applications/Safari.app/Contents/Resources/English.lproj/MainMenu.nib/classes.n ib: resource added
/Applications/Safari.app/Contents/Resources/English.lproj/MainMenu.nib/info.nib: resource added
/Applications/Safari.app/Contents/Resources/English.lproj/OldToolbarItems.nib/cl asses.nib: resource added
/Applications/Safari.app/Contents/Resources/English.lproj/OldToolbarItems.nib/in fo.nib: resource added
/Applications/Safari.app/Contents/Resources/English.lproj/ResetDialog.nib/classe s.nib: resource added
/Applications/Safari.app/Contents/Resources/English.lproj/ResetDialog.nib/info.n ib: resource added
/Applications/Safari.app/Contents/Resources/English.lproj/SecurityBanner.nib/cla sses.nib: resource added
/Applications/Safari.app/Contents/Resources/English.lproj/SecurityBanner.nib/inf o.nib: resource added
/Applications/Safari.app/Contents/Resources/English.lproj/ToolbarItems.nib/class es.nib: resource added
/Applications/Safari.app/Contents/Resources/English.lproj/ToolbarItems.nib/info. nib: resource added
/Applications/Safari.app/Contents/Resources/English.lproj/WebClipBanner.nib/clas ses.nib: resource added
/Applications/Safari.app/Contents/Resources/English.lproj/WebClipBanner.nib/info .nib: resource added
/Applications/Safari.app/Contents/Resources/CacheController.nib/designable.nib: resource modified
/Applications/Safari.app/Contents/Resources/English.lproj/BookmarkPreferences.ni b/designable.nib: resource modified
/Applications/Safari.app/Contents/Resources/English.lproj/SecurityPreferences.ni b/designable.nib: resource modified

I had no Safari code sign problems before the update.

This code sign problem with 4.0.2 is wreaking havoc with my Leopard firewall. I am constantly being asked if Safari should be allowed to accept incoming connections.

Has Apple mishandled the Safari 4.0.2 package? Do they need to fix this? Can anyone verify that this issue exists?

MacPro4,1, Mac OS X (10.5.7)

Posted on Jul 28, 2009 9:53 AM

Reply
16 replies

Jul 28, 2009 10:24 AM in response to LPZ

What did you do in Terminal to get that output, since Terminal would not start automatically on reboot and generate any error messages? Did you try starting using Disk Utility to Repair Disk Permissions, then rebooting and testing Safari again? Do you have any third-party Input Managers in ~/Library/InputManagers or /Library/InputManagers? If so, one or more them could be incompatible with Safari, so you should try removing any you have and then restart Safari.

If that clears up the problem, then you should check the developer's web site for newer versions that are compatible with Safari 4.0.2.

Jul 28, 2009 10:54 AM in response to sitspotsit

I started Terminal and invoked the codesign command, as shown. The command produced the rest of the posted content. Repairing permissions does not change the codesign output. I do not have ~/Library/InputManagers or /Library/InputManagers.

As for good news, Safari and the Leopard firewall now seem to be "playing nice", though the codesign output does not seem changed or correct.

Jul 28, 2009 6:24 PM in response to LPZ

Found this at http://developer.apple.com/releasenotes/Security/RN-CodeSigning/index.html

"The Application Firewall requires code to be signed to record permission to listen for inbound network connections."

I assume that incorrectly signed code is even worse than unsigned code. This then explains why I'm repeatedly asked to allow/deny incoming connection; my response is not recorded.

Can't believe this problem isn't more prevalent. Why am I so lucky?

Jul 28, 2009 8:28 PM in response to LPZ

Hi LPZ,

William Kucharski in another area of the forum discussions noticed the same thing. Here are his experiences and findings:

"I had a problem after updating Safari to Safari 4 where it would continually ask to allow incoming connections whenever I visited a noaa.gov animated RADAR web site (they use Java for animations) no matter how many times I told it to "allow" them.

I did a "codesign -v /Applications/Safari.app" and found that Leopard believed Safari's signature was incorrect, which is what I assume was causing the problem.

I fixed my system by doing the following:

1) Go to http://www.apple.com/safari/download/ and download the full Safari 4 download package.
2) Once downloaded, quit Safari 4.
3) Drag Applications->Safari to the trash and empty the trash.
4) Open System Preferences->Security. Go to the Firewall tab and if you have the firewall set to allow selected applications, delete Safari if it is present.
5) Close the Security preference pane.
6) Run the Safari 4 installer.
7) When the installation is done, the system will reboot.
8) Launch Safari 4 and viist the noaa.gov RADAR website of your choice.

Safari will automatically be added to the Firewall's application white list.

I haven't been asked whether I want Safari to allow incoming connections since.

I'm not necessarily sure steps 3 - 5 are actually required - a simple reinstall of Safari 4 may have worked.

I'm just detailing what worked for me"

Jul 29, 2009 2:25 AM in response to iBod

Thanks, iBod, but that didn't work for me. I am still repeatedly asked to allow incoming connections to Safari. The output from the codesign command is now shorter (which doesn't make sense to me, since I simply reinstalled the exact package I had installed before---clearly, I don't understand what code signing is). Here's the output I get:

codesign -vvvv /Applications/Safari.app/
/Applications/Safari.app/: a sealed resource is missing or invalid
/Applications/Safari.app/Contents/Resources/CacheController.nib/designable.nib: resource missing

I'm assuming that everyone except me will get an output like

/Applications/Safari.app/: valid on disk
/Applications/Safari.app/: satisfies its Designated Requirement

in response to typing

codesign -vvvv /Applications/Safari.app

in Terminal.

By the way, I also tried this: I deleted Safari.app and then used Pacifist to install Safari right from my Leopard install disk. This worked fine, and codesign indicated no problems. I then downloaded and installed from Safari4.0.2Leo.dmg and the problems returned. I wonder if there is some way to force SoftwareUpdate to update from the Leopard disk version. I tried deleting Safari boms, but that didn't work.

Pretty much stuck right now.

Jul 30, 2009 5:54 PM in response to Kenneth Kiv

You should start a new thread. Your problem is not related to code-signing.

By the way, I'm still stuck and totally frustrated. I'd love to see what output other folks get from typing

codesign -vvv /Applications/Safari.app

in Terminal. (It's harmless.)

Apple shouldn't be releasing packages that are incorrectly signed, and that cause problems for their own built-in firewall.

Jul 30, 2009 6:30 PM in response to LPZ

Hi

Here's what I see in Terminal:

/Applications/Safari.app: a sealed resource is missing or invalid
/Applications/Safari.app/Contents/Resources/AW_ActiveTabCenterFill.png: resource added
/Applications/Safari.app/Contents/Resources/AW_ActiveTabClose.png: resource added
/Applications/Safari.app/Contents/Resources/AW_ActiveTabClosePressed.png: resource added
/Applications/Safari.app/Contents/Resources/AW_ActiveTabCloseRollover.png: resource added
/Applications/Safari.app/Contents/Resources/AW_ActiveTabGripper.png: resource added
/Applications/Safari.app/Contents/Resources/AW_ActiveTabLeftCap.png: resource added
/Applications/Safari.app/Contents/Resources/AW_ActiveTabLeftCapFirstTab.png: resource added
/Applications/Safari.app/Contents/Resources/AW_ActiveTabLock.png: resource added
/Applications/Safari.app/Contents/Resources/AW_ActiveTabLockPressed.png: resource added
/Applications/Safari.app/Contents/Resources/AW_ActiveTabLockRollover.png: resource added
/Applications/Safari.app/Contents/Resources/AW_ActiveTabRightCap.png: resource added
/Applications/Safari.app/Contents/Resources/AW_AddTabButton.png: resource added
/Applications/Safari.app/Contents/Resources/AW_AddTabButtonPushed.png: resource added
/Applications/Safari.app/Contents/Resources/AW_ChevronButton.png: resource added
/Applications/Safari.app/Contents/Resources/AW_ChevronButtonPushed.png: resource added
/Applications/Safari.app/Contents/Resources/AW_InactiveTabAlert.png: resource added
/Applications/Safari.app/Contents/Resources/AW_InactiveTabCenterFill.png: resource added
/Applications/Safari.app/Contents/Resources/AW_InactiveTabClose.png: resource added
/Applications/Safari.app/Contents/Resources/AW_InactiveTabClosePressed.png: resource added
/Applications/Safari.app/Contents/Resources/AW_InactiveTabCloseRollover.png: resource added
/Applications/Safari.app/Contents/Resources/AW_InactiveTabGripper.png: resource added
/Applications/Safari.app/Contents/Resources/AW_InactiveTabLeftCap.png: resource added
/Applications/Safari.app/Contents/Resources/AW_InactiveTabLock.png: resource added
/Applications/Safari.app/Contents/Resources/AW_InactiveTabRightCap.png: resource added
/Applications/Safari.app/Contents/Resources/AWPulledActiveTabCenterFill.png: resource added
/Applications/Safari.app/Contents/Resources/AWPulledActiveTabLeftCap.png: resource added
/Applications/Safari.app/Contents/Resources/AWPulledActiveTabRightCap.png: resource added
/Applications/Safari.app/Contents/Resources/AW_TabOverflowButton.png: resource added
/Applications/Safari.app/Contents/Resources/AW_TabOverflowButtonPushed.png: resource added
/Applications/Safari.app/Contents/Resources/AW_TitlebarCenterFill.png: resource added
/Applications/Safari.app/Contents/Resources/AW_TitlebarLeftCap.png: resource added
/Applications/Safari.app/Contents/Resources/AW_TitlebarRightCap.png: resource added
/Applications/Safari.app/Contents/Resources/AW_ToolbarBottomEdge.png: resource added
/Applications/Safari.app/Contents/Resources/AW_ToolbarGradient.png: resource added
/Applications/Safari.app/Contents/Resources/English.lproj/Bookmarks.nib/classes. nib: resource added
/Applications/Safari.app/Contents/Resources/English.lproj/Bookmarks.nib/info.nib : resource added
/Applications/Safari.app/Contents/Resources/English.lproj/Browser.nib/classes.ni b: resource added
/Applications/Safari.app/Contents/Resources/English.lproj/Browser.nib/info.nib: resource added
/Applications/Safari.app/Contents/Resources/English.lproj/GeneralPreferences.nib /classes.nib: resource added
/Applications/Safari.app/Contents/Resources/English.lproj/GeneralPreferences.nib /info.nib: resource added
/Applications/Safari.app/Contents/Resources/English.lproj/MainMenu.nib/classes.n ib: resource added
/Applications/Safari.app/Contents/Resources/English.lproj/MainMenu.nib/info.nib: resource added
/Applications/Safari.app/Contents/Resources/English.lproj/MainMenu.nib/pointum.c om.webloc: resource added
/Applications/Safari.app/Contents/Resources/English.lproj/OldToolbarItems.nib/cl asses.nib: resource added
/Applications/Safari.app/Contents/Resources/English.lproj/OldToolbarItems.nib/in fo.nib: resource added
/Applications/Safari.app/Contents/Resources/English.lproj/ResetDialog.nib/classe s.nib: resource added
/Applications/Safari.app/Contents/Resources/English.lproj/ResetDialog.nib/info.n ib: resource added
/Applications/Safari.app/Contents/Resources/English.lproj/SecurityBanner.nib/cla sses.nib: resource added
/Applications/Safari.app/Contents/Resources/English.lproj/SecurityBanner.nib/inf o.nib: resource added
/Applications/Safari.app/Contents/Resources/English.lproj/ToolbarItems.nib/class es.nib: resource added
/Applications/Safari.app/Contents/Resources/English.lproj/ToolbarItems.nib/info. nib: resource added
/Applications/Safari.app/Contents/Resources/English.lproj/WebClipBanner.nib/clas ses.nib: resource added
/Applications/Safari.app/Contents/Resources/English.lproj/WebClipBanner.nib/info .nib: resource added
/Applications/Safari.app/Contents/Resources/EVCertURLFadeOut.png: resource added
/Applications/Safari.app/Contents/Resources/IW_ActiveTabCenterFill.png: resource added
/Applications/Safari.app/Contents/Resources/IW_ActiveTabClose.png: resource added
/Applications/Safari.app/Contents/Resources/IW_ActiveTabClosePressed.png: resource added
/Applications/Safari.app/Contents/Resources/IW_ActiveTabCloseRollover.png: resource added
/Applications/Safari.app/Contents/Resources/IW_ActiveTabGripper.png: resource added
/Applications/Safari.app/Contents/Resources/IW_ActiveTabLeftCap.png: resource added
/Applications/Safari.app/Contents/Resources/IW_ActiveTabLeftCapFirstTab.png: resource added
/Applications/Safari.app/Contents/Resources/IW_ActiveTabLock.png: resource added
/Applications/Safari.app/Contents/Resources/IW_ActiveTabRightCap.png: resource added
/Applications/Safari.app/Contents/Resources/IW_AddTabButton.png: resource added
/Applications/Safari.app/Contents/Resources/IW_ChevronButton.png: resource added
/Applications/Safari.app/Contents/Resources/IW_InactiveTabAlert.png: resource added
/Applications/Safari.app/Contents/Resources/IW_InactiveTabCenterFill.png: resource added
/Applications/Safari.app/Contents/Resources/IW_InactiveTabClose.png: resource added
/Applications/Safari.app/Contents/Resources/IW_InactiveTabClosePressed.png: resource added
/Applications/Safari.app/Contents/Resources/IW_InactiveTabCloseRollover.png: resource added
/Applications/Safari.app/Contents/Resources/IW_InactiveTabGripper.png: resource added
/Applications/Safari.app/Contents/Resources/IW_InactiveTabLeftCap.png: resource added
/Applications/Safari.app/Contents/Resources/IW_InactiveTabLock.png: resource added
/Applications/Safari.app/Contents/Resources/IW_InactiveTabRightCap.png: resource added
/Applications/Safari.app/Contents/Resources/IW_TabOverflowButton.png: resource added
/Applications/Safari.app/Contents/Resources/IW_TitlebarCenterFill.png: resource added
/Applications/Safari.app/Contents/Resources/IW_TitlebarLeftCap.png: resource added
/Applications/Safari.app/Contents/Resources/IW_TitlebarRightCap.png: resource added
/Applications/Safari.app/Contents/Resources/IW_ToolbarBottomEdge.png: resource added
/Applications/Safari.app/Contents/Resources/IW_ToolbarGradient.png: resource added
/Applications/Safari.app/Contents/Resources/TabsOnTopPreferences.tiff: resource added
/Applications/Safari.app/Contents/Resources/URLBarStopButtonPressed.png: resource added


As you can see it's similar to your list. I am not getting prompts with the Firewall. Here's what my Firewall panel looks like (note: Stealth is selected in the advanced options").

User uploaded file

Have you verified disk via Disk Utility? If not try it and let us know if any errors appear.

Jul 30, 2009 7:17 PM in response to Hawaiian_Starman

Hi,

My Firewall settings are identical to yours, except that I have not enable Screen Sharing. I verified my hard disk and no problems were noted. I also repaired permissions (again), but the problem persists.

By the way, I have essentially the same problem on both my new MacPro4,1 and the White 13" MacBook I am currently using. In both cases I installed Safari 4.0.2 from Apple's standalone Safari4.0.2Leo.dmg. How did you get your current version of Safari?

Jul 30, 2009 8:00 PM in response to LPZ

In both cases I installed Safari 4.0.2 from Apple's standalone Safari4.0.2Leo.dmg. How did you get your current version of Safari?


Software Update.

There might be an oddity in Keychains causing this problem. Open Keychain Access in your Applications>Utilities folder. First, repair keychains via the Keychain Menu>Keychain First Aid. Let us know if any errors appear (rerun if there are errors until you get a clean pass).

If that doesn't stop the prompts, there may be an oddity in one of the keychain entries. Before exploring that possibility post back and let us know what you discovered.

Jul 31, 2009 9:45 AM in response to LPZ

Back to Keychains: try this (although this is remedy for another type of prompt, it may do the trick here):

Highlight one of familiar keychain entries on the right side of the Keychains window or type a familiar name in the spotlight panel. Then double click the entry. When the panel opens, select "Access Control".

In the "Always allow access" panel, click on the +, then navigate to Safari in your Applications folder. Save changes. If Safari is appears already in the panel, remove it, save changes. Then repeat the initial step to put Safari back in the list.

Restart the computer/Safari. You may get a prompt for password, but it ought to be only once. Same for the incoming connections.

Post back

Jul 31, 2009 10:10 AM in response to Hawaiian_Starman

No help. Did as instructed, and then went to a page having a Java applet. Got "Do you want the application "Safari.app" to accept incoming network connections? ... This setting can be changed in the Firewall pane ..."

As I've done a hundred times now, I clicked on Allow. I then quit Safari, restarted it, went back to that page and got the exact same message.

This is about the Leopard firewall not trusting Safari, which seems ridiculous! Thanks anyway.

Aug 2, 2009 9:53 AM in response to LPZ

Hi.

A few days ago i found out the same think. Terminal returns "a sealed resource is missing or invalid". I thought it has something to do with the update but i'm not shure.

But i didn't get questions/warnings from the application firewall for Safari. Maybe because i didn't add Safari to the app-firewall because for me there is no reason to do so.

But since i installed 10.5 in autumn 2007 i get this question from the app-firewall for incoming connections when i open Word, Excel or sometimes even Skype. It only happens after a restart and just once. But it is annoying!

I then decided to check if the problem is related to the digital signature. So i restart the Mac, checked Word and Excel in Terminal with the codesign command to see if they are signed. They are! I opend these apps wich is followed from the anticipated question from the app-firewall. At this moment i send the command in Terminal again to see if something is wrong with the signature but they were ok!

So what ever is the problem with the application firewall and some apps it seems to have nothing to do with the signature.



For me there are two questions. Why Safari 4.0.2 is'nt signed correctly? And what i can do for stopping the app-firewall from ignoring the settings and asking every time again and again and ...

Safari 4.0.2 code sign problem

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