Skip to content

Commit

Permalink
Use SHA-1 hash of identity for codesign
Browse files Browse the repository at this point in the history
  • Loading branch information
sethlu authored May 21, 2017
1 parent b4ff876 commit f1b226a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions util-identities.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ module.exports.findIdentitiesAsync = function (opts, identity) {
.then(function (result) {
return result.split('\n').map(function (line) {
if (line.indexOf(identity) >= 0) {
var identityFound = opts['use-cert-id']
? line.substring(line.indexOf(')') + 2, line.indexOf('"') - 1)
: line.substring(line.indexOf('"') + 1, line.lastIndexOf('"'))
var identityFound = line.substring(line.indexOf('"') + 1, line.lastIndexOf('"'))
var identityHashFound = line.substring(line.indexOf(')') + 2, line.indexOf('"') - 1)
debuglog('Identity:', '\n',
'> Name:', identityFound)
return identityFound
'> Name:', identityFound, '\n',
'> Hash:', identityHashFound)
return identityHashFound
}
})
})
Expand Down

0 comments on commit f1b226a

Please sign in to comment.