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

Can't codesign #1441

Closed
s2young opened this issue Apr 7, 2017 · 6 comments
Closed

Can't codesign #1441

s2young opened this issue Apr 7, 2017 · 6 comments

Comments

@s2young
Copy link

s2young commented Apr 7, 2017

  • 16.7.1:
  • mas:

I have been through all the code-signing issues and tried everything I know to try but I continue to get the error: Identity name "[NAME]" is specified, but no valid identity with this name in the keychain

Following are the certs found running the 'security find-identity -v' command:

......
11) 5BFFD281CC10B48FE57028F5E5A200C28DDBDACA "3rd Party Mac Developer Application: MedCenterDisplay LLC (UNBZ95H8G9)"
12) 451290B195B537EA016FA9287D3E4BC7B5E57D14 "3rd Party Mac Developer Installer: MedCenterDisplay LLC (UNBZ95H8G9)"
13) 8DFF38599E8864EB6354BF9393F8CED8836FD48D "Mac Developer: Stuart Young (QQW2H24ZW9)"
14) BB9608419766D3002EAEB092EE2E6CBE0AD14068 "Mac Developer: Stuart Young (75KJW6BC4H)"
....

I have tried setting mas.identity to the following values:
3rd Party Mac Developer Installer: MedCenterDisplay LLC (UNBZ95H8G9)
3rd Party Mac Developer Application: MedCenterDisplay LLC (UNBZ95H8G9)
MedCenterDisplay LLC (UNBZ95H8G9)
MedCenterDisplay LLC
UNBZ95H8G9

Nothing works. Your help would be GREATLY appreciated. Thanks!

@develar
Copy link
Member

develar commented Apr 7, 2017

Please set env DEBUG=electron-builder and attach log of the terminal output.

@develar
Copy link
Member

develar commented Apr 7, 2017

On local machine please try to not set identity, it will be detected automatically.

@s2young
Copy link
Author

s2young commented Apr 7, 2017

Yes, on local machine it works but uses my personal identity. I'm trying to build for the store.

@develar
Copy link
Member

develar commented Apr 7, 2017

it works but uses my personal identity. I'm trying to build for the store.

Please attach terminal output. In your "'security find-identity -v' command:" I see the only 3rd Party Mac Developer Application / 3rd Party Mac Developer Installer pair and so, don't understand "it works but uses my personal identity"

@s2young
Copy link
Author

s2young commented Apr 7, 2017

It uses the 'Mac Developer: Stuart Young' identity. The warning tells me this is for development only. I'm trying to build for production, using the MedCenterDisplay identity. Working on getting you log output now.

@s2young
Copy link
Author

s2young commented Apr 7, 2017

electron-builder Two package.json structure is used (dev: /Users/stuart/Development/apps/app-electron/package.json, app: /Users/stuart/Development/apps/app-electron/dist/ppmgr/package.json) +0ms
electron-builder Effective config: {
electron-builder "appId": "com.patientpoint.viewer",
electron-builder "productName": "PatientPoint App Viewer",
electron-builder "copyright": "© 2017",
electron-builder "icon": "src/icons/ppmgr",
electron-builder "win": {
electron-builder "certificateFile": "src/mcd.pfx",
electron-builder "certificatePassword": ""
electron-builder },
electron-builder "mas": {
electron-builder "entitlements": "dist/ppmgr/entitlements.plist"
electron-builder },
electron-builder "mac": {
electron-builder "target": "pkg",
electron-builder "identity": "MedCenterDisplay LLC (UNBZ95H8G9)",
electron-builder "bundleVersion": "000",
electron-builder "category": "public.app-category.business"
electron-builder },
electron-builder "directories": {
electron-builder "app": "./dist/ppmgr"
electron-builder }
electron-builder } +2ms
Installing app dependencies for arch x64 to /Users/stuart/Development/apps/app-electron/dist/ppmgr
electron-builder Spawning npm install --production --cache-min 999999999 +42ms
[email protected] /Users/stuart/Development/apps/app-electron/dist/ppmgr
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├─┬ [email protected]
│ │ │ └── [email protected]
│ │ ├── [email protected]
│ │ ├─┬ [email protected]
│ │ │ └─┬ [email protected]
│ │ │ ├── [email protected]
│ │ │ └── [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ ├─┬ [email protected]
│ │ │ └── [email protected]
│ │ └── [email protected]
│ └─┬ [email protected]
│ └─┬ [email protected]
│ └── [email protected]
├── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ └─┬ [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├─┬ [email protected]
│ │ │ ├── [email protected]
│ │ │ └─┬ [email protected]
│ │ │ ├── [email protected]
│ │ │ └── [email protected]
│ │ └─┬ [email protected]
│ │ ├─┬ [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ └── [email protected]
│ │ │ └── [email protected]
│ │ ├── [email protected]
│ │ └─┬ [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ └─┬ [email protected]
│ └── [email protected]
├─┬ [email protected]
│ └── [email protected]
├── [email protected]
├── [email protected]
└─┬ [email protected]
├── [email protected]
├── [email protected]
├─┬ [email protected]
│ └── [email protected]
├── [email protected]
├─┬ [email protected]
│ └── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├─┬ [email protected]
│ │ │ └── [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├─┬ [email protected]
│ │ │ └── [email protected]
│ │ └── [email protected]
│ └─┬ [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ └─┬ [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ └── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├─┬ [email protected]
│ └── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]

electron-builder npm (6654) exited with code 0 +11s
Packaging for darwin x64 using electron 1.6.2 to dist/mac
electron-builder Spawning /Users/stuart/Development/apps/app-electron/node_modules/7zip-bin-mac/7za x -bd /Users/stuart/.electron/electron-v1.6.2-darwin-x64.zip -o/Users/stuart/Development/apps/app-electron/dist/mac +1s

7-Zip (a) [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=utf8,Utf16=on,HugeFiles=on,64 bits,4 CPUs x64)

Scanning the drive for archives:
1 file, 44691942 bytes (43 MiB)

Extracting archive: /Users/stuart/.electron/electron-v1.6.2-darwin-x64.zip

Path = /Users/stuart/.electron/electron-v1.6.2-darwin-x64.zip
Type = zip
Physical Size = 44691942

Everything is Ok

Folders: 143
Files: 180
Size: 115338982
Compressed: 44691942
electron-builder /Users/stuart/Development/apps/app-electron/node_modules/7zip-bin-mac/7za (6662) exited with code 0 +3s
electron-builder Dev or extraneous dependencies: ../../../electron-builder.yml, ../../../electron-builder.json, ../../../electron-builder.json5 +1ms
electron-builder Executing security find-identity -v +4s
electron-builder Executing security find-identity -v -p codesigning +14ms

  1. 5941A1587CDE0F550BBAD2F91347D1413776BB7A "iPhone Distribution: MedCenterDisplay LLC (UNBZ95H8G9)"

  2. C6FC96F6763DD67FF755CCC21E01C1B69F7DF9A8 "iPhone Distribution: Northwestern University (E74ZKF37E6)"

  3. 5BFFD281CC10B48FE57028F5E5A200C28DDBDACA "3rd Party Mac Developer Application: MedCenterDisplay LLC (UNBZ95H8G9)"

  4. 8DFF38599E8864EB6354BF9393F8CED8836FD48D "Mac Developer: Stuart Young (QQW2H24ZW9)"

  5. BB9608419766D3002EAEB092EE2E6CBE0AD14068 "Mac Developer: Stuart Young (75KJW6BC4H)"

  6. D0569ACC3CC1B8211D18FEB18CCE93136F8AC59A "iPhone Distribution: InPocket, LLC (GKNH3EZZBJ)"

  7. 4108F0CEECCEA615F2C9559317274095ADAA79FF "iPhone Developer: Stuart Young (75KJW6BC4H)"

  8. A43B1AA6E9E10978EB619538283A3D62BA2CAEC8 "iPhone Distribution: PATIENTPOINT NETWORK SOLUTIONS, LLC (QA59E2543A)"
    8 valid identities found

  9. 55F4074FDD6C8E91B2000E52B18250D201158DF5 "Apple Push Services: com.2ndvote.iosapp"

  10. A04ABFB680962100446FF0FBEA1CAFFB4C2C0C1F "Apple Push Services: com.medcenterdisplay.carsource"

  11. C1DE97BA16DC756A09719390ABF2739CDF91DF81 "Apple Push Services: com.medcenterdisplay.donelsonanimal"

  12. 5941A1587CDE0F550BBAD2F91347D1413776BB7A "iPhone Distribution: MedCenterDisplay LLC (UNBZ95H8G9)"

  13. C9FE646C7C8BFE8029BD50901F5E0D641CA9EA24 "Apple Push Services: com.medcenterdisplay.mpsseminars"

  14. CA1A58E4503901819AF2564B76269605B12422B9 "Apple Push Services: com.medcenterdisplay.smb-dcmetro"

  15. CB517D0170F84F7C843B6D42A61E9B1A2171B871 "Apple Push Services: com.medcenterdisplay.smb001"

  16. 5D6F6A6B035C2E435CA2FE954195B3BBF70BB585 "Apple Push Services: com.medcenterdisplay.swedish"

  17. C6FC96F6763DD67FF755CCC21E01C1B69F7DF9A8 "iPhone Distribution: Northwestern University (E74ZKF37E6)"

  18. D9F926938FA02BAAAB2209F15880E07A59B26BCD "Apple Push Services: com.medcenterdisplay.smb-greatam"

  19. 5BFFD281CC10B48FE57028F5E5A200C28DDBDACA "3rd Party Mac Developer Application: MedCenterDisplay LLC (UNBZ95H8G9)"

  20. 451290B195B537EA016FA9287D3E4BC7B5E57D14 "3rd Party Mac Developer Installer: MedCenterDisplay LLC (UNBZ95H8G9)"

  21. 8DFF38599E8864EB6354BF9393F8CED8836FD48D "Mac Developer: Stuart Young (QQW2H24ZW9)"

  22. BB9608419766D3002EAEB092EE2E6CBE0AD14068 "Mac Developer: Stuart Young (75KJW6BC4H)"

  23. D0569ACC3CC1B8211D18FEB18CCE93136F8AC59A "iPhone Distribution: InPocket, LLC (GKNH3EZZBJ)"

  24. 4108F0CEECCEA615F2C9559317274095ADAA79FF "iPhone Developer: Stuart Young (75KJW6BC4H)"

  25. A43B1AA6E9E10978EB619538283A3D62BA2CAEC8 "iPhone Distribution: PATIENTPOINT NETWORK SOLUTIONS, LLC (QA59E2543A)"
    17 valid identities found

Error: Identity name "MedCenterDisplay LLC (UNBZ95H8G9)" is specified, but no valid identity with this name in the keychain
at /Users/stuart/Development/apps/app-electron/node_modules/electron-builder/src/macPackager.ts:148:17
at next (native)
From previous event:
at MacPackager.sign (/Users/stuart/Development/apps/app-electron/node_modules/electron-builder/out/macPackager.js:276:11)
at /Users/stuart/Development/apps/app-electron/node_modules/electron-builder/src/macPackager.ts:82:26
at tryOnImmediate (timers.js:543:15)
at processImmediate [as _immediateCallback] (timers.js:523:5)
From previous event:
at /Users/stuart/Development/apps/app-electron/node_modules/electron-builder/src/macPackager.ts:82:10
at next (native)
From previous event:
at MacPackager.pack (/Users/stuart/Development/apps/app-electron/node_modules/electron-builder/out/macPackager.js:181:11)
at /Users/stuart/Development/apps/app-electron/node_modules/electron-builder/src/packager.ts:257:24
at next (native)
at xfs.stat (/Users/stuart/Development/apps/app-electron/node_modules/fs-extra-p/node_modules/fs-extra/lib/mkdirs/mkdirs.js:56:16)
at /Users/stuart/Development/apps/app-electron/node_modules/graceful-fs/polyfills.js:287:18
at FSReqWrap.oncomplete (fs.js:117:15)
From previous event:
at Packager.doBuild (/Users/stuart/Development/apps/app-electron/node_modules/electron-builder/out/packager.js:379:11)
at /Users/stuart/Development/apps/app-electron/node_modules/electron-builder/src/packager.ts:170:52
at next (native)
at tryOnImmediate (timers.js:543:15)
at processImmediate [as _immediateCallback] (timers.js:523:5)
From previous event:
at Packager.build (/Users/stuart/Development/apps/app-electron/node_modules/electron-builder/out/packager.js:274:11)
at Object. (/Users/stuart/Development/apps/app-electron/node_modules/electron-builder/src/builder.ts:198:33)
at next (native)
From previous event:
at Object.build (/Users/stuart/Development/apps/app-electron/node_modules/electron-builder/out/builder.js:70:21)
at Object. (/Users/stuart/Development/apps/app-electron/Gruntfile.js:448:11)
at Object.thisTask.fn (/Users/stuart/Development/apps/app-electron/node_modules/grunt/lib/grunt/task.js:73:16)
at Object. (/Users/stuart/Development/apps/app-electron/node_modules/grunt/lib/util/task.js:294:30)
at Task.runTaskFn (/Users/stuart/Development/apps/app-electron/node_modules/grunt/lib/util/task.js:244:24)
at Task. (/Users/stuart/Development/apps/app-electron/node_modules/grunt/lib/util/task.js:293:12)
at /Users/stuart/Development/apps/app-electron/node_modules/grunt/lib/util/task.js:220:11
at _combinedTickCallback (internal/process/next_tick.js:67:7)
at process._tickCallback (internal/process/next_tick.js:98:9)

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

No branches or pull requests

2 participants