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

pki --acert - Issue an attribute certificate

Description

       This sub-command of pki(1) is used to issue an attribute certificate using an issuer certificate with its
       private key and the holder certificate.

Examples

       To save repetitive typing, command line options can be stored in files.  Lets assume  acert.opt  contains
       the following contents:

         --issuercert aacert.der --issuerkey aakey.der --digest sha256 --lifetime 4

       Then  the  following  command can be used to issue an attribute certificate based on a holder certificate
       and the options above:

         pki --acert --options acert.opt --in holder.der --group sales --group finance -f pem

Name

       pki --acert - Issue an attribute certificate

Options

-h,--help
              Print usage information with a summary of the available options.

       -v,--debuglevel
              Set debug level, default: 1.

       -+,--optionsfile
              Read command line options from file.

       -i,--infile
              Holder  certificate  to  issue  an attribute certificate for. If not given the certificate is read
              from STDIN.

       -m,--groupmembership
              Group membership the attribute certificate shall certify. The specified group  is  included  as  a
              string. To include multiple groups, the option can be repeated.

       -k,--issuerkeyfile
              Issuer private key file. Either this or --issuerkeyid is required.

       -x,--issuerkeyidhex
              Smartcard  or  TPM  issuer  private  key  object handle in hex format with an optional h0x prefix.
              Either this or --issuerkey is required.

       -c,--issuercertfile
              Issuer certificate file. Required.

       -l,--lifetimehours
              Hours the attribute certificate is valid, default: 24. Ignored if both an absolute start  and  end
              time are given.

       -F,--not-beforedatetime
              Absolute time when the validity of the AC begins. The datetime format is defined by the --dateform
              option.

       -T,--not-afterdatetime
              Absolute  time  when the validity of the AC ends. The datetime format is defined by the --dateform
              option.

       -D,--dateformformstrptime(3) format for the --not-before and --not-after options, default: %d.%m.%y%T-s,--serialhex
              Serial number in hex. It is randomly allocated by default.

       -g,--digestdigest
              Digest to use for signature creation. One of md5, sha1, sha224, sha256,  sha384,  or  sha512.  The
              default is determined based on the type and size of the signature key.

       -R,--rsa-paddingpadding
              Padding to use for RSA signatures. Either pkcs1 or pss, defaults to pkcs1.

       -f,--outformencoding
              Encoding  of the created certificate file. Either der (ASN.1 DER) or pem (Base64 PEM), defaults to
              der.

See Also

pki(1)

5.9.13                                             2014-02-05                                     PKI--ACERT(1)

Synopsis

pki--acert [--infile] [--groupmembership] --issuerkeyfile|--issuerkeyidhex--issuercertfile
                   [--lifetimehours] [--not-beforedatetime] [--not-afterdatetime] [--serialhex]
                   [--digestdigest] [--rsa-paddingpadding] [--outformencoding] [--debuglevel]

       pki--acert--optionsfilepki--acert-h | --help

See Also