step-ca
step-ca
step-ca
in a Docker containerstep-ca
step-ca
step-ca
in a Docker containerstep certificate format
step certificate format -- reformat certificate
step certificate format <crt-file> [--out=<file>]
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.
crt-file
Path to a certificate or CSR file.
--out=value
Path to write the reformatted result.
-f, --force Force the overwrite of files without asking.
This command returns 0 on success and >0 if any error occurs.
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
Unsubscribe anytime. See our privacy policy.
© 2023 Smallstep Labs, Inc. All rights reserved.