PKI --PRINT(1) strongSwan PKI --PRINT(1)

# [NAME](#NAME)

pki --print - Print a credential (key, certificate etc.) in human readable form

# [SYNOPSIS](#SYNOPSIS)

`pki --print` \[**--in** *file*|***--keyid*** *hex*] \[**--type** *type*] \[**--debug** *level*]

`pki --print` **--options file**

`pki --print` **-h** | **--help**

# [DESCRIPTION](#DESCRIPTION)

This sub-command of [**pki**(1)](/man/os/strongswan/pki.1) prints credentials (keys, certificates etc.) in human readable form.

# [OPTIONS](#OPTIONS)

[**-h, --help**](#h,)

Print usage information with a summary of the available options.

[**-v, --debug level**](#v,)

Set debug level, default: 1.

**-+, --options file**

Read command line options from *file*.

[**-i, --in file**](#i,)

Input file. If not given the input is read from *STDIN*.

[**-x, --keyid hex**](#x,)

Smartcard or TPM private key or certificate object handle in hex format with an optional 0x prefix.

[**-t, --type type**](#t,)

Type of input. One of *x509* (X.509 certificate), *crl* (Certificate Revocation List, CRL), *ac* (Attribute Certificate), *pub* (public key), *priv* (private key), *rsa* (RSA private key), *ecdsa* (ECDSA private key), *ed25519* (Ed25519 private key), *ed448* (Ed448 private key), *ocsp-req* (OCSP request), *ocsp-rsp* (OCSP response), defaults to *x509*.

# [SEE ALSO](#SEE_ALSO)

[**pki**(1)](/man/os/strongswan/pki.1)

2016-12-13 6.0.6

---

Document: pki---print(1) from strongswan 6.0.6-r0 (Chainguard OS)
Source: https://github.com/strongswan/strongswan
