step certificate format

Name

step certificate format -- reformat certificate

Usage

step certificate format <crt-file> [--out=<file>]

Description

step certificate format prints the certificate or CSR in a different format.

Only 2 formats are currently supported; PEM and ASN.1 DER. This tool will convert a certificate or CSR in one format to the other.

Positional arguments

crt-file Path to a certificate or CSR file.

Options

--out=value Path to write the reformatted result.

-f, --force Force the overwrite of files without asking.

Exit codes

This command returns 0 on success and >0 if any error occurs.

Examples

Convert PEM format to DER:

$ step certificate format foo.pem

Convert DER format to PEM:

$ step certificate format foo.der

Convert PEM format to DER and write to disk:

$ step certificate format foo.pem --out foo.der
Commands