PKI --SELF(1) strongSwan PKI --SELF(1) (NAME) pki --self - (SYNOPSIS) pki --self [--in file|--keyid hex] [--type t] --dn distinguished-name [--san subjectAltName] [--lifetime days] [--not-before datetime] [--not-after datetime] [--serial hex] [--flag flag] [--digest digest] [--rsa-padding padding] [--ca] [--ocsp uri] [--pathlen len] [--addrblock block] [--nc-permitted name] [--nc-excluded name] [--critical oid] [--policy-mapping mapping] [--policy-explicit len] [--policy-inhibit len] [--policy-any len] [--cert-policy oid [--cps-uri uri] [--user-notice text]] [--outform encoding] [--debug level] pki --self --options file pki --self -h | --help (DESCRIPTION) pki(1) . (OPTIONS) -h, --help . -v, --debug level : . -+, --options file file. -i, --in file . STDIN . -x, --keyid hex TPM 0x. -t, --type type . priv rsa ecdsa ed25519 ed448 : priv. -d, --dn distinguished-name (DN) . . -a, --san subjectAltName subjectAltName . . -l, --lifetime days : . . -F, --not-before datetime . --dateform . -T, --not-after datetime . --dateform . -D, --dateform form strptime(3) --not-before --not-after : %d.%m.%y %T -s, --serial hex . . -e, --flag flag extendedKeyUsage. serverAuth clientAuth crlSign ocspSigning. . -g, --digest digest () . md5 sha1 sha224 sha256 sha384 sha512. . -R, --rsa-padding padding RSA. pkcs1 pss : pkcs1. -f, --outform encoding . der (ASN.1 DER) pem (Base64 PEM) : der. -b, --ca basicConstraint (CA) . -o, --ocsp uri URI AuthorityInfoAccess OCSP . . -p, --pathlen len (path length constraint). -B, --addrblock block RFC 3779 . block CIDR ( 10.0.0.0/8) (192.168.1.7-192.168.1.13) . . . RFC 3779 . -n, --nc-permitted name NameConstraint . DNS . dns: email: . -N, --nc-excluded name NameConstraint . DNS . dns: email: . -X, --critical oid (critical) OID . -M, --policy-mapping issuer-oid:subject-oid policyMapping OID . -E, --policy-explicit len requireExplicitPolicy. -H, --policy-inhibit len inhibitPolicyMapping. -A, --policy-any len inhibitAnyPolicy. (Certificate Policy) certificatePolicy . : -P, --cert-policy oid OID certificatePolicy. . -C, --cps-uri uri URI (CPS) certificatePolicy. -U, --user-notice text certificatePolicy. (EXAMPLES) RSA : pki --self --in key.der --dn "C=CH, O=strongSwan, CN=moon" \ --san moon.strongswan.org > cert.der (SEE ALSO) pki(1) 6.1.0 2019-05-06 PKI --SELF(1)