lantern icon indicating copy to clipboard operation
lantern copied to clipboard

OSX installer not being signed correctly

Open lanterndev opened this issue 14 years ago • 11 comments

There are several consequences of this. The most important is that by default users can't install unsigned software on OSX. Also, if the user has their firewall enabled in security.prefpane os x prompts with "do you want the application 'Lantern.app' to accept incoming network connections?" every time you start lantern.app. (lion)

lanterndev avatar Jan 28 '12 00:01 lanterndev

if it's signed you only have to accept this once the first time you run it, is that right?

lanterndev avatar Jan 28 '12 00:01 lanterndev

not sure -- i think you're probably never prompted.

myleshorton avatar Jan 28 '12 01:01 myleshorton

This consistently reproduces with a signed, installed version for me and for one of our OS X testers:

screen shot 2013-05-23 at 11 07 14 am

lanterndev avatar May 23 '13 15:05 lanterndev

This should only happen if the user has unchecked "Automatically allow signed software to receive incoming connections."

Do you have that unchecked @skivvies?

firewall-options

myleshorton avatar May 24 '13 22:05 myleshorton

Nope, I've got that checked, and I still get the prompts.

lanterndev avatar May 24 '13 22:05 lanterndev

Hmn..ok something up with out signing then!

On Fri, May 24, 2013 at 3:51 PM, skivvies [email protected] wrote:

Nope, I've got that checked, and I still get the prompts.

— Reply to this email directly or view it on GitHubhttps://github.com/getlantern/lantern/issues/136#issuecomment-18434313 .

myleshorton avatar May 24 '13 22:05 myleshorton

Seems like something in our app bundle is changing after install:

spctl -a -v /Applications/Lantern/Lantern.app /Applications/Lantern/Lantern.app: a sealed resource is missing or invalid

The Info.plist should be changing, but that code seems to be failing.

myleshorton avatar May 25 '13 04:05 myleshorton

Just so everyone's aware, we can't do anything in the installation directory really ever, or our code signing will become invalid. I'm probably the one who changed something in this case, but just so everyone's aware.

myleshorton avatar May 25 '13 04:05 myleshorton

This page is relevant:

https://developer.apple.com/library/ios/#documentation/IDEs/Conceptual/AppDistributionGuide/DistributingApplicationsOutside/DistributingApplicationsOutside.html#//apple_ref/doc/uid/TP40012582-CH12-SW2

myleshorton avatar May 25 '13 04:05 myleshorton

How does that affect upgrades?

On Sat, May 25, 2013 at 12:43 AM, myleshorton [email protected]:

This page is relevant:

https://developer.apple.com/library/ios/#documentation/IDEs/Conceptual/AppDistributionGuide/DistributingApplicationsOutside/DistributingApplicationsOutside.html#//apple_ref/doc/uid/TP40012582-CH12-SW2

— Reply to this email directly or view it on GitHubhttps://github.com/getlantern/lantern/issues/136#issuecomment-18439702 .

leahxschmidt avatar May 25 '13 19:05 leahxschmidt

Get's super tricky for binary diff upgrades, but for a straight upgrade it's fine since you're just overwriting everything and are using a new signature.

On Sat, May 25, 2013 at 12:53 PM, Leah X Schmidt [email protected]:

How does that affect upgrades?

On Sat, May 25, 2013 at 12:43 AM, myleshorton [email protected]:

This page is relevant:

https://developer.apple.com/library/ios/#documentation/IDEs/Conceptual/AppDistributionGuide/DistributingApplicationsOutside/DistributingApplicationsOutside.html#//apple_ref/doc/uid/TP40012582-CH12-SW2

— Reply to this email directly or view it on GitHub< https://github.com/getlantern/lantern/issues/136#issuecomment-18439702> .

— Reply to this email directly or view it on GitHubhttps://github.com/getlantern/lantern/issues/136#issuecomment-18452917 .

myleshorton avatar May 25 '13 21:05 myleshorton