strongimcv_pki—pub (1) Linux Manual Page
pki –pub – Extract a public key from a private key or certificate
Synopsis
[–in file|–keyid hex] [ –type type ] [ –outform encoding ] [ –debug level ] –options~file -h | –help
Description
This sub-command of pki(1) extracts public keys from a private keys and certificates.
Options
-h, –help- Print usage information with a summary of the available options.
-v, –debuglevel- Set debug level, default: 1.
-+, –optionsfile- Read command line options from file.
-i, –infile- Input file. If not given the input is read from STDIN.
-t, –typetype- Type of input. One of rsa (RSA private key), ecdsa (ECDSA private key), pub (public key), pkcs10 (PKCS#10 certificate request), or x509 (X.509 certificate), defaults to rsa.
-f, –outformencoding- Encoding of the extracted public key. One of der (ASN.1 DER), pem (Base64 PEM), dnskey (RFC 3110 DNS key), or sshkey (RFC 4253 SSH key), defaults to der.
Examples
Extract the public key from an RSA private key:
Extract the public key from an X.509 certificate:
See Also
pki(1)
