/
Depends on
- dh-golang (dh-golang)
- golang-defaults (golang-any)
- golang-github-chzyer-readline (golang-github-chzyer-readline-dev)
- golang-github-manifoldco-promptui (golang-github-manifoldco-promptui-dev)
- golang-github-pkg-errors (golang-github-pkg-errors-dev)
- golang-github-smallstep-assert (golang-github-smallstep-assert-dev)
- golang-github-urfave-cli (golang-github-urfave-cli-dev)
- golang-go.crypto (golang-golang-x-crypto-dev)
- golang-golang-x-net (golang-golang-x-net-dev)
- golang-testify (golang-github-stretchr-testify-dev)
- debhelper-compat, golang-github-mgutz-ansi-dev, golang-github-russross-blackfriday-v2-dev
Used by
README (full)
Step CLI
step is a toolkit for working with your public key infrastructure (PKI).
It's also the client counterpart to the step-ca online Certificate Authority (CA).
Here's a quick example, combining step oauth and step crypto to get and verify the signature of a Google OAuth OIDC token:

Questions? Ask us on GitHub Discussions or Gitter.
Website | Documentation | Installation | Getting Started | Contributor's Guide
Features
Step CLI's command groups illustrate some of its uses:
-
step certificate: Work with X.509 (TLS/HTTPS) certificates.- Create, revoke, validate, lint, and bundle X.509 certificates.
- Install (and remove) X.509 certificates into your system's (and brower's) trust store.
- Create key pairs (RSA, ECDSA, EdDSA) and certificate signing requests (CSRs)
- Sign CSRs
- Create RFC5280 and CA/Browser Forum-compliant certificates that work for TLS and HTTPS
- Create CA certificates (root and intermediate signing certificates)
- Create self-signed & CA-signed certificates
- Inspect and lint certificates on disk or in use by a remote server
- Install root certificates so your CA is trusted by default (issue development certificates that work in browsers)
-
step ca: Set up your own CA, or make requests of any ACMEv2 (RFC8555) CA, includingstep-ca. ACME is the protocol used by Let's Encrypt to automate the issuance of HTTPS certificates.- Initialize an X.509 and/or SSH CA in one command
- Authenticate and obtain a certificate using any enrollment mechanism supported by
step-ca - Securely distribute root certificates and bootstrap PKI relying parties
- Renew and revoke certificates issued by
step-ca - Submit CSRs to be signed by
step-ca
-
step crypto: A general-purpose crypto toolkit- Work with JWTs (RFC7519) and other JOSE constructs
- Sign, verify, and inspect JSON Web Tokens (JWTs)
- Sign, verify, and inspect arbitrary data using JSON Web Signature (JWS)
- Encrypt and decrypt data and wrap private keys using JSON Web Encryption (JWE)
- Create JWKs and manage key sets for use with JWT, JWE, and JWS
- Generate and verify TOTP tokens for multi-factor authentication (MFA)
- Work with NaCl's high-speed tools for encryption and signing
- Apply key derivation functions (KDFs) and verify passwords using
scrypt,bcrypt, andargo2 - Generate and check file hashes
- Work with JWTs (RFC7519) and other JOSE constructs
-
step oauth: Add an OAuth 2.0 single sign-on flow to any CLI application.- Supports OAuth authorization code, out-of-band (OOB), JWT bearer, and refresh token flows
- Get OAuth access tokens and OIDC identity tokens at the command line from any provider.
- Verify OIDC identity tokens (
step crypto jwt verify)
-
step ssh: Create and manage SSH certificates (requires an online or offlinestep-cainstance)- Generate SSH user and host key pairs and short-lived certificates
- Add and remove certificates to the SSH agent
- Inspect SSH certificates
- Login and use single sign-on SSH
Installation
See our installation docs here.
Community
- Connect with
stepusers on GitHub Discussions or Gitter - Open an issue and tell us what features you'd like to see
- Follow Smallstep on Twitter
Further Reading
- Full documentation for
step - We have more examples of
stepandstep-cain action on the Smallstep blog. - If you're new to PKI and X.509 certificates, or you want a refresher on the core concepts, you may enjoy Everything PKI.
| dir | .github/ |
| dir | autocomplete/ |
| dir | cmd/ |
| dir | command/ |
| dir | config/ |
| dir | crypto/ |
| dir | debian/ |
| dir | docker/ |
| dir | docs/ |
| dir | errs/ |
| dir | exec/ |
| dir | flags/ |
| dir | integration/ |
| dir | jose/ |
| dir | make/ |
| dir | pkg/ |
| dir | token/ |
| dir | ui/ |
| dir | upload/ |
| dir | usage/ |
| dir | utils/ |
| file | .VERSION |
| file | .gitattributes |
| file | .gitignore |
| file | .golangci.yml |
| file | .goreleaser.yml |
| file | .version.sh |
| file | CHANGELOG.md |
| file | LICENSE |
| file | Makefile |
| file | README.md |
| file | distribution.md |
| file | go.mod |
| file | go.sum |