Manual Pages for UNIX Darwin command on man csreq
MyWebUniversity

Manual Pages for UNIX Darwin command on man csreq

CSREQ(1) BSD General Commands Manual CSREQ(1)

NAME

ccssrreeqq - Expert tool for manipulating Code Signing Requirement data

SYNOPSIS

ccssrreeqq [-vv] -r requirement-input -t

ccssrreeqq [-vv] -r requirement-input -b outputfile

DESCRIPTION

The ccssrreeqq command manipulates Code Signing Requirement data. It reads

one requirement from a file or command arguments, converts it into inter-

nal form, checks it, and then optionally outputs it in a different form. The options are as follows:

-bb path

Requests that the requirement read be written in binary form to the path given.

-rr requirement-input

Specifies the input requirement. See "specifying requirements"

below. This is exactly the same format as is accepted by the -r

and -R options of the codesign(1) command.

-tt Requests that the requirement read be written as text to standard

output.

-vv Increases the verbosity of output. Multiple instances of -v pro-

duce increasing levels of commentary output. In the first synopsis form, ccssrreeqq reads a Code Requirement and writes it to standard output as canonical source text. Note that with text input,

this actually compiles the requirement into internal form and then con-

verts it back to text, giving you the system's view of the requirement code. In the second synopsis form, ccssrreeqq reads a Code Requirement and writes its binary representation to a file. This is the same form produced by the SecRequirementCopyData API, and is readily acceptable as input to

Code Signing verification APIs. It can also be used as input to subse-

quent invocations of ccssrreeqq by passing the filename to the -r option.

SSPPEECCIIFFYYIINNGG RREEQQUUIIRREEMMEENNTTSS

The requirement argument (-r) can be given in various forms. A plain text

argument is taken to be a path to a file containing the requirement. This program will accept both binary files containing properly compiled requirements code, and source files that are automatically compiled for

use. An argument of "-" requests that the requirement(s) are read from

standard input. Again, standard input can contain either binary form or text. Finally, an argument that begins with an equal sign "=" is taken as a literal requirements source text, and is compiled accordingly for use. EEXXAAMMPPLLEESS To compile an explicit requirement program and write its binary form to file "output":

csreq -r="identifier com.foo.test" -b output.csreq

To display the requirement program embedded at offset 1234 of file "foo":

tail -b 1234 foo | csreq -r- -t

FILESDIAGNOSTICS The ccssrreeqq program exits 0 on success or 1 on failure. Errors in arguments yield exit code 2.

SEE ALSO

codesign(1) HISTORY The ccssrreeqq command first appeared in Mac OS 10.5.0 . BSD June 1, 2006 BSD




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™