2 .\" Copyright (c) 2022 Cameron Katri. All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
13 .\" THIS SOFTWARE IS PROVIDED BY CAMERON KATRI AND CONTRIBUTORS ``AS IS'' AND
14 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16 .\" ARE DISCLAIMED. IN NO EVENT SHALL CAMERON KATRI OR CONTRIBUTORS BE LIABLE
17 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 .Nd Create and interact with trustcaches
58 utility is used to get info about and modify Apple trustcaches.
60 The following commands are supported by
62 .Bl -tag -width create
70 Modify the trustcache at
72 to include each signed Mach-O at the specified paths.
75 is both 40 characters and hexadecimal, that hash will be added to the cache.
77 is used to specify a custom uuid to be used.
80 the uuid will be left the same, otherwise, it will be regenerated.
83 is specified, any new entries with have the flags specified at
92 Create a trustcache at
94 Each Mach-O found in the specified inputs will be scanned for
95 a code signature and hashed.
96 Any malformed or unsigned Mach-O will be ignored.
97 Each slice of a FAT binary will have its hash included.
98 Versions 0 and 1 are supported, if not specified, 1 is assumed.
101 is specified, that will be used instead of a randomly generated one.
109 Print information about
111 The output for each hash will be in the format:
113 .Dl <cdhash> <flags> [<hash_type>]
117 is given, only the hashes will be printed.
120 is given, only the header will be printed.
123 is specified, only that entry will be printed.
130 Remove each specified hash from
134 is specified, the uuid will not be regenerated.
135 The number of removed entries will be printed.
140 .Xr cryptex-dump-trust-cache 1 ,
141 .Xr cryptex-generate-trust-cache 1
145 utility was written by
146 .An Cameron Katri Aq Mt me@cameronkatri.com .