Skip to main content

step-ca configuration

The step-ca is the core component of the Anapaya SCION CA. It is configured as a systemd service and provides the main certificate authority functionality. Consult the step-ca documentation for more details on its configuration and usage that go beyond the scope of this document.

tip

Use the quick reference to get an overview of important files and commands.

Configuration

The step-ca configuration is primarily managed through the /etc/scion-ca/step/config/ca.json file. However, during the installation process, remote provisioner management is enabled, which moves the provisioner configuration to the database instead of keeping in the file. This allows having multiple step-ca instances without needing to synchronize the configuration file across them.

The step-ca-rotator service is responsible for managing parts of the configuration file. In particular, fields related to the intermediate CA certificate and the key are updated by the step-ca-rotator. The step-ca-rotator informs the step-ca about configuration changes by sending a SIGHUP signal. The relevant fields are:

  • crt: The path to the intermediate CA certificate file. The step-ca-rotator simply replaces the file with the new certificate. It does not modify the crt field in the configuration file.
  • key: The resource identifier of the intermediate CA key in Cloud KMS. The step-ca-rotator updates this field with the new key version after a successful rotation.

For a more detailed explanation of the step-ca configuration, refer to the step-ca documentation. To learn more about configuring Cloud KMS, refer to the cryptographic protection documentation.

Quick reference

Files and directories

PathDescription
/etc/scion-ca/stepDirectory containing step-ca configuration and data
/etc/scion-ca/step/certsDirectory containing step-ca configuration and data
/etc/scion-ca/step/certs/intermediate_ca.crtIntermediate CA certificate file (provisioned by step-ca-rotator)
/etc/scion-ca/step/certs/root_ca.crtRoot CA certificate file (provisioned by operator)
/etc/scion-ca/step/config/ca.jsonMain configuration file for step-ca (modified by step-ca-rotator)
/etc/scion-ca/step/secrets/credentials.jsonFile storing the credentials for step-ca
/etc/scion-ca/step/templates/step-ca-adapter.jsonX.509 template for the step-ca-adapter provisioner
/etc/systemd/system/step-ca.serviceSystemd unit file to manage the step-ca service

Commands

CommandDescription
sudo systemctl start step-caStart the step-ca service
sudo systemctl stop step-caStop the step-ca service
sudo systemctl restart step-caRestart the step-ca service
sudo systemctl status step-caCheck the status of the step-ca service
sudo journalctl -u step-caView the logs for the step-ca service
step ca provisioner <cmd>Manage step-ca provisioners