← Winnitude! Search  ·  Reader Mode (696 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
GITHUB · 186 LINKS

GitHub - smallstep/cli: 🧰 A zero trust swiss army knife for working with X509, OAuth, JWT, OATH OTP, etc.

Repository navigation

cli
Public

About

🧰 A zero trust swiss army knife for working with X509, OAuth, JWT, OATH OTP, etc.

smallstep.com/cli

Topics

certificate cryptography encryption jose jwe jws jwt mfa oath oauth security security-tools ssh sso tls totp x509

Resources

Readme Apache-2.0 license

Contributing

Contributing

Security policy

Security policy Activity Custom properties

Stars

4.4k stars

Watchers

55 watching

Forks

340 forks Report repository
Branches

Tags
Go to Branches page Go to Tags page

Latest commit

 

History


4,153 Commits
View commit history for this file.

Folders and files

Name Name Last commit message Last commit date
.github .github    
autocomplete autocomplete    
cmd/ step cmd/ step    
command command    
debian debian    
docker docker    
docs docs    
exec exec    
flags flags    
integration integration    
internal internal    
make make    
pkg/ bcrypt_pbkdf pkg/ bcrypt_pbkdf    
powershell powershell    
scripts scripts    
systemd systemd    
token token    
utils utils    
.VERSION .VERSION    
.gitattributes .gitattributes    
.gitignore .gitignore    
.goreleaser.yml .goreleaser.yml    
CHANGELOG.md CHANGELOG.md    
LICENSE LICENSE    
Makefile Makefile    
README.md README.md    
SECURITY.md SECURITY.md    
cosign.pub cosign.pub    
go.mod go.mod    
go.sum go.sum    

Repository files navigation

Step CLI

step is an easy-to-use CLI tool for building, operating, and automating Public Key Infrastructure (PKI) systems and workflows. It's also a client for the step-ca online Certificate Authority (CA) server. You can use it for many common crypto and X.509 operations -- either independently, or with an online CA.

Questions? Ask us on GitHub Discussions or Discord .

Website | Documentation | Installation | Basic Crypto Operations | Contributor's Guide

Features

Step CLI's command groups illustrate its wide-ranging 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 browser's) trust store.
    • Validate certificate deployment and renewal status for automation
    • Create key pairs (RSA, ECDSA, EdDSA, ML-DSA) 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 : Administer and use a step-ca server, or any ACMEv2 (RFC8555 ) compliant CA server. ACME is the protocol used by Let's Encrypt to automate the issuance of HTTPS certificates.

  • step crypto : A general-purpose crypto toolkit

  • 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 offline step-ca instance)

    • 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 .

Example

Here's a quick example, combining step oauth and step crypto to get and verify the signature of a Google OAuth OIDC token:

Plugins

A plugin is an executable file named using the format step-<name>-plugin. Plugins must be available in your $PATH or in the $STEPPATH/plugins directory (that's $HOME/.step/plugins, by default).

When you run step <name>, the CLI will automatically execute the corresponding plugin, if found.

Some known plugins include:

  • step-kms-plugin : Manage keys and certificates stored in a KMS, including HSMs, TPMs, YubiKeys, the macOS Keychain, and cloud KMSs.
  • step-kmsproxy-plugin : Provides an HSM/KMS-backed authenticating proxy for mTLS services. Thanks to @andsens for creating and maintaining this plugin!

step-kms-plugin is also integrated directly into step to create certificates, generate CSRs, sign tokens, and more using KMS-backed keys.

Community

Further Reading

About

🧰 A zero trust swiss army knife for working with X509, OAuth, JWT, OATH OTP, etc.

smallstep.com/cli

Topics

certificate cryptography encryption jose jwe jws jwt mfa oath oauth security security-tools ssh sso tls totp x509

Resources

Readme Apache-2.0 license

Contributing

Contributing

Security policy

Security policy Activity Custom properties

Stars

4.4k stars

Watchers

55 watching

Forks

340 forks Report repository

Releases

Packages

Used by

Contributors

Languages