PKI --KEYID(1) strongSwan PKI --KEYID(1) (NAME) pki --keyid - (SYNOPSIS) pki --keyid [--in file|--keyid hex] [--type type] [--id id-type] [--format format] [--debug level] pki --keyid --options file pki --keyid -h | --help (DESCRIPTION) pki(1) . (OPTIONS) -h, --help . -v, --debug level (debug) : 1. -+, --options file file. -i, --in file . STDIN . -x, --keyid hex TPM 0x. -t, --type type . priv ( ) rsa ( RSA) ecdsa ( ECDSA) pub ( ) pkcs10 ( PKCS#10) x509 ( X.509) priv . -I, --id id-type . all ( ) spk ( SHA-1 subjectPublicKey) spki ( SHA-1 subjectPublicKeyInfo) all . -f, --format format . pretty ( ) hex ( ) base64 ( Base64) bin ( ) pretty . (EXAMPLES) RSA: $ pki --keyid --in key.der subjkey (SHA-1 of subjectPublicKey): 6a:9c:74:d1:f8:89:79:89:f6:5a:94:e9:89:f1... keyid (SHA-1 of subjectPublicKeyInfo): 6e:55:dc:7e:9c:a5:58:d9:5b:e3:c7:13:14:e1... X.509: $ pki --keyid --in cert.der --type x509 subjkey (SHA-1 of subjectPublicKey): 6a:9c:74:d1:f8:89:79:89:f6:5a:94:e9:89:f1... keyid (SHA-1 of subjectPublicKeyInfo): 6e:55:dc:7e:9c:a5:58:d9:5b:e3:c7:13:14:e1... keyid X.509 : $ pki --keyid --in cert.der --type x509 --id spki --format hex 6e55dc7e9ca558d95be3c71314e1... (SEE ALSO) pki(1) 6.1.0 2019-04-29 PKI --KEYID(1)