Skip to content

step_ca_client

Install and configure Smallstep step-ca client on Ubuntu/Debian systems.

This role:

  1. Installs step CLI from the official Smallstep APT repository
  2. Bootstraps trust with your Step CA server
  3. Installs the root CA certificate system-wide
  • Ubuntu/Debian-based system
  • Step CA server accessible on the network
  • CA fingerprint from your Step CA server
  • step_ca_fingerprint: The fingerprint of your Step CA root certificate (no default)
  • step_ca_url: URL of your Step CA server (default: https://stepca.toolsera.lan)
  • step_ca_install_cli: Install step CLI (default: true)
  • step_ca_bootstrap: Bootstrap CA trust (default: true)
  • step_ca_install_system_cert: Install certificate system-wide (default: true)

See defaults/main.yml for all available variables.

None.

---
- hosts: all
roles:
- role: step_ca_client
step_ca_fingerprint: '702a094e239c9eec6f0dcd0a5f65e595bf7ed6614012825c5fe3d1ae1b2fd6ee'
---
- hosts: all
roles:
- role: step_ca_client
step_ca_install_cli: true
step_ca_bootstrap: false
step_ca_install_system_cert: false
---
- hosts: all
roles:
- role: step_ca_client
step_ca_install_cli: false
step_ca_bootstrap: true
step_ca_install_system_cert: true
step_ca_fingerprint: 'YOUR_FINGERPRINT'
---
- hosts: all
roles:
- role: step_ca_client
step_ca_url: 'https://ca.example.com:8443'
step_ca_fingerprint: 'YOUR_FINGERPRINT'

On your Step CA server, run:

Terminal window
step certificate fingerprint $(step path)/certs/root_ca.crt

After the role completes, clients can:

Terminal window
# Check CA health
step ca health
# Request a certificate
step ca certificate yourservice.example.com cert.crt key.key
# View provisioners
step ca provisioner list

MIT

Created for ubuntu-server-config repository.