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

NAME

6       pki --pub - Extract a public key from a private key or certificate
7

SYNOPSIS

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

DESCRIPTION

17       This sub-command of pki(1) extracts public keys from a private keys and
18       certificates.
19

OPTIONS

21       -h, --help
22              Print usage information with a summary of the available options.
23
24       -v, --debug level
25              Set debug level, default: 1.
26
27       -+, --options file
28              Read command line options from file.
29
30       -i, --in file
31              Input file. If not given the input is read from STDIN.
32
33       -x, --keyid hex
34              Smartcard or TPM private key object handle in hex format with an
35              optional 0x prefix.
36
37       -t, --type type
38              Type of input. One of priv (private key), rsa (RSA private key),
39              ecdsa  (ECDSA  private  key),  pub (public key), pkcs10 (PKCS#10
40              certificate request), or x509 (X.509 certificate),  defaults  to
41              priv.
42
43       -f, --outform encoding
44              Encoding  of  the  extracted public key. One of der (ASN.1 DER),
45              pem (Base64 PEM), dnskey (RFC 3110 DNS key), or sshkey (RFC 4253
46              SSH key), defaults to der.
47

EXAMPLES

49       Extract the public key from an RSA private key:
50
51         pki --pub --in key.der > pub.der
52
53       Extract the public key from an X.509 certificate:
54
55         pki --pub --in cert.der --type x509 > pub.der
56

SEE ALSO

58       pki(1)
59
60
61
625.8.4                             2013-07-31                      PKI --PUB(1)
Impressum