1PKI --KEYID(1)                    strongSwan                    PKI --KEYID(1)
2
3
4

NAME

6       pki --keyid - Calculate key identifiers of a key or certificate
7

SYNOPSIS

9       pki --keyid [--in file|--keyid hex] [--type type] [--debug level]
10
11       pki --keyid --options file
12
13       pki --keyid -h | --help
14

DESCRIPTION

16       This  sub-command  of pki(1) calculates key identifiers of private keys
17       and certificates.
18

OPTIONS

20       -h, --help
21              Print usage information with a summary of the available options.
22
23       -v, --debug level
24              Set debug level, default: 1.
25
26       -+, --options file
27              Read command line options from file.
28
29       -i, --in file
30              Input file. If not given the input is read from STDIN.
31
32       -x, --keyid hex
33              Smartcard or TPM private key object handle in hex format with an
34              optional 0x prefix.
35
36       -t, --type type
37              Type of input. One of priv (private key), rsa (RSA private key),
38              ecdsa (ECDSA private key), bliss (BLISS private key), pub  (pub‐
39              lic key), pkcs10 (PKCS#10 certificate request), x509 (X.509 cer‐
40              tificate), defaults to priv.
41

EXAMPLES

43       Calculate key identifiers of an RSA private key:
44
45         pki --keyid --in key.der
46         subjectKeyIdentifier:      6a:9c:74:d1:f8:89:79:89:f6:5a:94:e9:89:f1...
47         subjectPublicKeyInfo hash: 6e:55:dc:7e:9c:a5:58:d9:5b:e3:c7:13:14:e1...
48
49       Calculate key identifiers of an X.509 certificate:
50
51         pki --keyid --in cert.der --type x509
52         subjectKeyIdentifier:      6a:9c:74:d1:f8:89:79:89:f6:5a:94:e9:89:f1...
53         subjectPublicKeyInfo hash: 6e:55:dc:7e:9c:a5:58:d9:5b:e3:c7:13:14:e1...
54

SEE ALSO

56       pki(1)
57
58
59
605.7.2                             2013-07-31                    PKI --KEYID(1)
Impressum