Project

General

Profile

ipsec pki --keyid

Synopsis

pki --keyid [--in file|--keyid hex] [--type priv|rsa|ecdsa|bliss|pub|pkcs10|x509]
            [--id all|spk|spki] [--format pretty|hex|base64|bin]

           --help     (-h)  show usage information
           --in       (-i)  input file, default: stdin
           --keyid    (-x)  smartcard or TPM private key object handle
           --type     (-t)  type of key, default: priv
           --id       (-I)  type of identifier, default: all
           --format   (-f)  output format, default: pretty
           --debug    (-v)  set debug level, default: 1
           --options  (-+)  read command line options from file

Description

Calculate and display public key identifiers. Currently these are spk ("subjkey" - SHA-1 hash of subjectPublicKey) and spki ("keyid" - SHA-1 hash of subjectPublicKeyInfo).

Since 5.8.0 --id and --format allow specifying what output the tool produces.