logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

lcp2_crtpollist - create an Intel(R) TXT policy list

Description

lcp2_crtpollist is used to create an Intel(R) TXT policy list.

Examples

       Create unsigned policy list with MLE element:
       lcp2_crtpollist --create --out list.lst mle.elt

       Sign policy:
       lcp2_crtpollist --sign --sigalg rsa --pub pubkey.pem --priv privkey.pem --out list.lst

Name

       lcp2_crtpollist - create an Intel(R) TXT policy list

Options

--create
              Create a TXT policy list. The following options are available:

              --listverver policy  list  version.  Supported values are: 0x100 (legacy LCP_POLICY_LIST), 0x200,
                            0x201 (legacy LCP_POLICY_LIST2) and 0x300 (current LCP_POLICY_LIST2_1).

              --outfile output file for policy list

              [file]...  policy element files (created with the lcp2_crpolelt command).

       --sign Sign a TXT policy list.

              --sigalg<rsa|rsapss|ecdsa|sm2> Signature algorithm. Lists version 0x100  only  support  rsa  (rsa
                                              pkcs  1.5).  Lists  version  0x200 and 0x201 support rsa (rsa pkcs
                                              1.5) and ecdsa. Lists version 0x300 support rsapss and ecdsa.

              --hashalg<sha1|sha256|sha384|sha512|sm2> Hash algorithm used for signing a  list.  Lists  version
                                                        0x100 only support SHA1.

              --pubfile                                Public key to use, must be in PEM format.

              [--privfile]                             Private  key  to use, must be in PEM format. This option
                                                        is required unless you use the --nosig option

              [--revcounter]                           Revocation counter value

              [--nosig]                                 Don't add a SigBlock. This option is ignored if list  is
                                                        version 0x300.

              --outfile                                Policy list file (input and output)

       --addsig
              Add a signature. This option is ignored if list is version 0x300.

              --sigfile File containing signature (big-endian)

              --outfile Policy list file

       --showfile
              Show contents of a policy file

       --verifyfile
              Verify policy version 0x300 file.

       --version
              Show tool version.

       --help Print out the tool's help message.

       --verbose
              Enable verbose output; can be specified with any command.

See Also

FulldocumentationofMLE,Intel(R)TXTandLCPisavailableinIntel(R)TXTMeasured Launch Environment
       Deleveloper's Guide, available at:  http://www.intel.com/content/www/us/en/software-developers/intel-txt-
       software-development-guide.html

       lcp2_crtpol(8), lcp2_crtpolelt(8), lcp2_mlehash(8), openssl(1).

tboot                                              2020-05-10                                 LCP2_CRTPOLLIST(8)

Synopsis

lcp2_crtpollistCOMMAND [OPTION]

See Also