step Command Examples

An easy-to-use CLI tool for building, operating, and automating Public Key Infrastructure (PKI) systems and workflows. See also: openssl. More information: https://smallstep.com/docs/step-cli/.

step certificate inspect {{path/to/certificate.crt}}

step certificate create "{{Example Root CA}}" {{path/to/root-ca.crt}} {{path/to/root-ca.key}} --profile root-ca

step certificate create {{hostname.example.com}} {{path/to/hostname.crt}} {{path/to/hostname.key}} --profile leaf --ca {{path/to/root-ca.crt}} --ca-key {{path/to/root-ca.key}}

step certificate verify {{path/to/hostname.crt}} --roots {{path/to/root-ca.crt}} --verbose

step certificate format {{path/to/certificate.pem}} --out {{path/to/certificate.der}}

step certificate {{install|uninstall}} {{path/to/root-ca.crt}}

step crypto keypair {{path/to/public_key}} {{path/to/private_key}} --kty {{RSA|EC}}

step {{path|base64|certificate|completion|context|crl|crypto|oauth|ca|beta|ssh}} --help