talira

step CLI

An easy-to-use CLI tool for building, operating, and automating Public Key Infrastructure (PKI) systems and workflows

open sourceApache-2.0self-hostablefree

The step CLI (the step command) is Smallstep's open source tool for X.509 and SSH certificates, keys and tokens: it creates root and intermediate CA certificates, key pairs, CSRs and self-signed or CA-signed certificates, inspects and lints certificates on disk or on a live server, checks whether one needs renewing, and installs root certificates into the system and browser trust stores. It's also the client for step-ca: step ca initialises an X.509 or SSH CA in one command, bootstraps trust in it, and requests, renews and revokes certificates with any of its provisioners, and it can get certificates from any ACMEv2 CA with the http-01 challenge. step ssh gets short-lived SSH user and host certificates (with single sign-on) and loads them into the SSH agent, step crypto signs, verifies and inspects JWTs, JWS and JWE, makes JWKs, TOTP codes, password hashes and file hashes, and step oauth runs OAuth 2.0 and OIDC flows from a terminal. It's written in Go under Apache-2.0 and runs plugins named step-<name>-plugin, such as step-kms-plugin for keys in HSMs, TPMs, YubiKeys, the macOS Keychain and cloud KMSs.

Ways to install

Problems it solves

  • create my own root and intermediate CA certificates without memorising openssl flags
  • inspect the certificate a remote server presents to see its chain, names and expiry date
  • lint an X.509 certificate for problems before we deploy it
  • install our internal root CA into the system and browser trust stores on a developer's machine
  • make a key pair and CSR from the command line and get it signed by our private CA
  • renew certificates from our private CA automatically from a script or a long-running process
  • check in an automation script whether a deployed certificate is due for renewal
  • decode and verify a JWT from the terminal
  • get an OIDC ID token from Google or Okta at the command line for a script
  • log in with single sign-on and get a short-lived SSH certificate loaded into my SSH agent
  • encrypt a file or wrap a private key with JSON Web Encryption from the command line
  • sign certificates with a private key kept in a YubiKey, TPM or cloud KMS
  • make development HTTPS certificates that browsers trust

Features

  • create, revoke, validate, lint and bundle X.509 certificates
  • create RSA, ECDSA and EdDSA key pairs and CSRs, and sign CSRs
  • create root and intermediate CA certificates, self-signed and CA-signed certificates
  • inspect and lint certificates on disk or in use by a remote server
  • install and remove root certificates in the system and browser trust stores
  • check certificate deployment and renewal status for automation
  • initialise an X.509 and/or SSH CA in one command (step-ca)
  • request, renew and revoke certificates from step-ca with any of its provisioners, and bootstrap trust in it
  • ACMEv2 client for any RFC 8555 CA with the http-01 challenge
  • SSH user and host certificates, added to and removed from the SSH agent; single sign-on SSH
View 5 more
  • sign, verify and inspect JWTs and JWS; encrypt and decrypt with JWE; create JWKs and key sets
  • TOTP generation and verification, NaCl encryption and signing, scrypt, bcrypt and argon2 KDFs, file hashes
  • OAuth 2.0 authorization code, out-of-band, JWT bearer and refresh token flows; OIDC ID tokens at the command line
  • plugins named step-<name>-plugin, including step-kms-plugin for HSMs, TPMs, YubiKeys, the macOS Keychain and cloud KMSs
  • packages for Homebrew, Debian and Ubuntu, RHEL and Fedora, Arch, Alpine, NixOS, FreeBSD, Wolfi, winget and Scoop

Limitations

  • Doesn't answer dns-01 or tls-alpn-01 ACME challenges: with an ACME CA it supports only http-014
  • Doesn't issue SSH certificates on its own: step ssh needs an online or offline step-ca4

Capabilities

Has a command line toolplan not known
Takes pluginsplan not known

Alternatives

The same job

These do what step CLI does.

  1. mkcert A simple zero-config tool to make locally trusted development certificates with any names you'd like.
  2. OpenSSL General purpose TLS and crypto library
  3. step-ca A private certificate authority (X.509 & SSH) & ACME server for secure automated certificate management

Compare step CLI with the top 3