
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
NodeJS module and commandline utility for re-signing iOS applications (IPA files).
Sergi Alvarez aka pancake @ nowsecure.com
$ ipa-resign.js [--options ...] [input-ipafile]
-i, --identities List local codesign identities
-I, --identity 1C4D1A.. Specify hash-id of the identity to use
-r, --replace Replace the input IPA file with the resigned one
-e, --entitlements [ENTITL] Specify entitlements file (EXPERIMENTAL)
-w, --without-watchapp Remove the WatchApp from the IPA before resigning
-k, --keychain [KEYCHAIN] Specify alternative keychain file
-o, --output [APP.IPA] Path to the output IPA filename
-b, --bundleid [BUNDLEID] Change the bundleid when repackaging
-m, --mobileprovision [FILE] Specify the mobileprovision file to use
[input-ipafile] Path to the IPA file to resign
List local codesign identities:
$ bin/ipa-resign -I
Resign an IPA with a specific identity:
$ bin/ipa-resign -i 1C4D1A442A623A91E6656F74D170A711CB1D257A foo.ipa
Change bundleid:
$ bin/ipa-resign -b org.nowsecure.testapp path/to/ipa
Here's a simple program that resigns an IPA:
const Applesign = require('applesign');
const as = new Applesign({
identity: '81A24300FE2A8EAA99A9601FDA3EA811CD80526A',
mobileprovision: '/path/to/dev.mobileprovision',
withoutWatchapp: true
});
const s = as.signIPA('/path/to/app.ipa', onEnd)
.on('warning', (msg) => {
console.log('WARNING', msg);
})
.on('message', (msg) => {
console.log('msg', msg);
});
function onEnd(err, data) => {
if (err) {
console.error(err);
s.cleanup();
process.exit(1);
} else {
console.log('ios-deploy -b', as.config.outfile);
process.exit(0);
}
}
To list the developer identities available in the system:
as.getIdentities((err, ids) => {
if (err) {
console.error(err, ids);
} else {
ids.forEach((id) => {
console.log(id.hash, id.name);
});
}
});
Bear in mind that the Applesign object can tuned to use different configuration options:
const options = {
file: '/path/to/app.ipa',
outfile: '/path/to/app-resigned.ipa',
entitlement: '/path/to/entitlement',
bundleid: 'app.company.bundleid',
identity: 'hash id of the developer',
mobileprovision: '/path/to/mobileprovision file',
ignoreVerificationErrors: true,
withoutWatchapp: true
};
See the Wiki: https://github.com/nowsecure/node-applesign/wiki
Pre iOS9 devices will require a developer account:
FAQs
API to resign IPA files
The npm package applesign receives a total of 429 weekly downloads. As such, applesign popularity was classified as not popular.
We found that applesign demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.