2 .\" Copyright (c) 2021-2022 Procursus Team <team@procurs.us>
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
18 .Op Fl E Ns Ar num : Ns Ar file
21 .Op Fl K Ns Ar key.p12 Op Fl U Ns Ar password
25 .Op Fl r | Fl S Ns Ar file.xml | Fl s
26 .Op Fl T Ns Ar timestamp
31 adds SHA1 and SHA256 hashes to a Mach-O file so that they can be run
32 on a system that has validation but not signature verification.
33 .Bl -tag -width -indent
35 Print the CPU types and subtypes in hexadecimal.
36 .It Fl A Ns Ar cputype : Ns Ar subtype
38 .Fl a , Fl D , Fl e , Fl h , Fl q ,
41 only act on the slice specified by
48 should both be integers.
49 .It Fl C Ns Op Ar adhoc | Ar enforcement | Ar expires | Ar hard | Ar host | Ar kill | Ar library-validation | Ar restrict | Ar runtime
50 Specify the option flags to embed in the code signature.
53 for details about these options.
57 Print the cryptid in the binaries if it exists.
58 For compatibility reasons it also acts as
60 but this will be removed in the future.
61 .It Fl E Ns Ar num : Ns Ar file
64 in the special codesign slot at
67 Print the entitlements in each slice, or the slice specified by
72 Print information about the signature, such as
73 hash types, flags, CDHash, and CodeDirectory version to
75 .It Fl K Ns Ar key.p12
76 Sign using the identity in
78 This will give the binary a valid signature so that it can be run
79 on a system with signature validation.
82 has a password you will be prompted for it,
83 or you can specify from the command line with
88 merge the new and existing entitlements instead of replacing the existing
89 entitlements, this is useful for adding a few specific entitlements to a
92 Mark the Mach-O as a platform binary.
94 Embed the requirements found in
97 Print embedded requirements of the binaries.
99 Remove the signature from the Mach-O.
100 .It Fl S Ns Op Ar file.xml
101 Pseudo-sign the Mach-O binaries.
104 is specified then the entitlements found in
106 will be embedded in the Mach-O.
108 Resign the Mach-O binaries while keeping the existing entitlements.
109 .It Fl T Ns Ar timestamp
110 When signing a dylib, set the timestamp to
113 should be an UNIX timestamp in seconds, if
117 the timestamp will be set to a hash of the Mach-O header.
118 .It Fl U Ns Ar password
121 as the password for the p12 certificate instead of prompting.
123 If the binary was linked against UIKit, then print the UIKit version that the
124 Mach-O binaries were linked against.
133 with no entitlements.
137 .Dl "ldid -Cadhoc -K/path/to/key.p12 -Sent.xml file"
143 with the entitlements found in
145 and mark it as an adhoc signature.
149 .Dl "ldid -Sent.xml -M file"
151 will add the entitlements in
153 to the entitlements already in
158 .Dl "ldid -e file > ent.xml"
160 will save the entitlements found in each slice of
169 utility was written by
170 .An Jay \*qSaurik\*q Freeman .
171 iPhoneOS 1.2.0 and 2.0 support was added on April 6, 2008.
173 was added on June 13, 2008.
174 SHA256 support was added on August 25, 2016, fixing iOS 11 support.
175 iOS 14 support was added on July 31, 2020 by
177 iOS 15 support was added on June 11, 2021.