step certificate format

NAME

step certificate format – reformat certificate

USAGE

step certificate format crt_file [–out=path]

DESCRIPTION

step certificate format prints the certificate in a different format.

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

POSITIONAL ARGUMENTS

crt_file
Path to a certificate file.

OPTIONS

–out=value
Path to write the reformatted result.
-f=value, –force=value
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