Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the identity of the developer cannot be confirmed #64

Open
alex-zhang opened this issue Jul 1, 2016 · 9 comments
Open

the identity of the developer cannot be confirmed #64

alex-zhang opened this issue Jul 1, 2016 · 9 comments

Comments

@alex-zhang
Copy link

hi, all

i need codesign app with 'Develop ID Application' certificate. first i set the the Certificate's Trust to 'Use System Defaults' codesign will fine pass, and i verifying it with 'spctl -a -vvvv' and it's also fine, but when i download the app from my local test webserver and the os's gatekeeper promote the error 'the identity of the developer cannot be confirmed'

later i set the Certificate's Trust of Item 'Code Signing' to 'Always Trust' and it's will in cli with ' nested code is modified or invalid'.

anyone can help me, thks.

@sethlu sethlu added the question label Jul 1, 2016
@sethlu
Copy link
Contributor

sethlu commented Jul 1, 2016

Hi @alex-zhang, would you mind having a go with the following command?

$ spctl --assess --type execute --verbose <app>

I can't come up with any causes so far but spctl should tell verbosely how the issue might be caused.

@sethlu
Copy link
Contributor

sethlu commented Jul 3, 2016

This may be a duplicate of electron-userland/electron-builder#559 addressing the issue "nested code is modified or invalid".

@nantas
Copy link

nantas commented Feb 28, 2017

@sethlu
Hi there,

Thanks a lot for the great tool.

I have the same problem, I tried your verifying command:

$ spctl --assess --type execute --verbose <app>

The result:

spctl --assess --type execute --verbose ./dist/CocosCreator.app
./dist/CocosCreator.app: accepted
source=Developer ID

But if I download my app from a test web server it's still rejected by Gatekeeper, saying the identity of the developer cannot be confirmed.

@nantas
Copy link

nantas commented Mar 1, 2017

I found that the signed app file is alright, but as soon as I created a dmg file to contain the app file, and download the dmg file from web server. Gatekeeper will reject the app file copied from disk image. Anyone know how to deal with this?

@sethlu
Copy link
Contributor

sethlu commented Mar 1, 2017

@nantas thanks for using electron-osx-sign. I think this question may be similar to #119; however, I believe here the app packaging is completed without issues. I am not very sure where the issue with dmg validation comes from if the app bundle is signed correctly. @develar do you have any advice?

@nantas
Copy link

nantas commented Mar 1, 2017

I can verify that electron-osx-sign did its job perfectly.

If I zip the app file and upload it to web server and download, gatekeeper will have no complain.

If I create a dmg file contains the app, once downloaded from web server, gatekeeper says cannot confirm developer identity.

According to this blog post: http://macinstallers.blogspot.tw/2016/09/codesign-guide-changes-for-macos-sierra.html

It's recommended to codesign dmg as well, but I tried without luck, problem stays.

Sorry to post this issues here since it's not electron-osx-sign's fault. Just wondering if anyone encounter this before?

@sethlu
Copy link
Contributor

sethlu commented Mar 1, 2017

@nantas thanks for the information on the changes introduced in macOS Sierra. 😸 I will read through the article tomorrow and propose some changes for electron-osx-sign to, for example, allow signing dmg files for distribution.

@develar
Copy link
Contributor

develar commented Mar 1, 2017

@nantas do you use electron-builder? If not, could you please try to use it? It sign and create DMG for you in one step.

@sethlu yes, since sierra DMG should be signed, but I forgot to implement it (since it is not required).

@sethlu
Copy link
Contributor

sethlu commented Mar 2, 2017

@nantas I have just read the technical doc from Apple Developer (https://developer.apple.com/library/prerelease/content/technotes/tn2206/_index.html) and I think that adding a feature to allow passing a dmg file for signing in electron-osx-sign will be quite useful for macOS ^10.11.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants