2 .\" Copyright (c) 2021 ProcursusTeam
3 .\" SPDX-License-Identifier: AGPL-3.0-or-later
10 .Nd Link Identity Editor
13 .Op Fl A Ns Ar cputype : Ns Ar subtype
15 .Op Fl C Ns Op Ar adhoc | Ar enforcement | Ar expires | Ar hard | Ar host | Ar kill | Ar library-validation | Ar restrict | Ar runtime
20 .Op Fl K Ns Ar key.p12 Op Fl U Ns Ar password
24 .Op Fl r | Fl S Ns Ar file.xml | Fl s
25 .Op Fl T Ns Ar timestamp
30 adds SHA1 and SHA256 hashes to a Mach-O file so that they can be run on a system that has validation but not signature verification.
31 .Bl -tag -width -indent
33 Print the CPU types and subtypes in hexadecimal.
34 .It Fl A Ns Ar cputype : Ns Ar subtype
36 .Fl a , Fl D , Fl e , Fl h , Fl q ,
39 only act on the slice specified by
46 should both be integers.
47 .It Fl C Ns Op Ar adhoc | Ar enforcement | Ar expires | Ar hard | Ar host | Ar kill | Ar library-validation | Ar restrict | Ar runtime
48 Specify the option flags to embed in the code signature.
51 for details about these options.
55 Print the cryptid in the binaries if it exists.
56 For compatibility reasons it also acts as
58 but this will be removed in the future.
60 Print the entitlements in each slice, or the slice specified by
65 Print information about the signature, such as hash types, flags, CDHash, and CodeDirectory version to
67 .It Fl K Ns Ar key.p12
68 Sign using the identity in
70 This will give the binary a valid signature so that it can be run on a system with signature validation.
73 has a password you will be prompted for it, or you can specify from the command line with
78 merge the new and existing entitlements instead of replacing the existing entitlements, this is useful for adding a few specific entitlements to a handful of binaries.
80 Mark the Mach-O as a platform binary.
82 Embed the requirements found in
85 Print embedded requirements of the binaries.
87 Remove the signature from the Mach-O.
88 .It Fl S Ns Op Ar file.xml
89 Pseudo-sign the Mach-O binaries.
92 is specified then the entitlements found in
94 will be embedded in the Mach-O.
96 Resign the Mach-O binaries while keeping the existing entitlements.
97 .It Fl T Ns Ar timestamp
98 When signing a dylib, set the timestamp to
101 should be an UNIX timestamp in seconds, if
105 the timestamp will be set to a hash of the Mach-O header.
106 .It Fl U Ns Ar password
109 as the password for the p12 certificate instead of prompting.
111 If the binary was linked against UIKit, then print the UIKit version that the Mach-O binaries was linked against.
120 with no entitlements.
124 .Dl "ldid -Cadhoc -K/path/to/key.p12 -Sent.xml file"
130 with the entitlements found in
132 and mark it as an adhoc signature.
136 .Dl "ldid -Sent.xml -M file"
138 will add the entitlements in
140 to the entitlements already in
145 .Dl "ldid -e file > ent.xml"
147 will save the entitlements found in each slice of
156 utility was written by
157 .An Jay \*qSaurik\*q Freeman .
158 iPhoneOS 1.2.0 and 2.0 support was added on April 6, 2008.
160 was added on June 13, 2008.
161 SHA256 support was added on August 25, 2016, fixing iOS 11 support.
162 iOS 14 support was added on July 31, 2020 by
164 iOS 15 support was added on June 11, 2021.