Certificate Deployment

Deployment covers the entire process from when the certificate is fetched from the CA to when it is installed and active on the endpoint. sslbrain supports several methods depending on the platform.


Recommended method per platform

Platform Method Note
WindowsService Agent (pull)Most stable, easiest to maintain, no open ports
LinuxPush via SSHsslbrain connects directly and runs the agent
AppliancesPush via SSH or APIDepends on the device (SSH for pfSense/ESXi, API for NetScaler/vCenter)
CloudPush via CLIAWS CLI, Azure CLI or gcloud from the sslbrain host

See Access for detailed setup of SSH, WinRM, Windows Service and API.


Deployment Plans

A deployment plan defines how certificates are rolled out to multiple endpoints. This is relevant when the same certificate (e.g. a wildcard) is used on many servers, or when you want to coordinate rollout with maintenance windows.

Create a plan

  1. Go to the certificate's Deployment tab
  2. Click Create deployment plan
  3. Add the endpoints to include
  4. Configure order, error handling and schedule

Ordering

Mode Description Typical use
ParallelAll endpoints at onceStateless web servers behind a load balancer
SequentialOne at a time in orderServers that must be updated one at a time to avoid downtime
One-at-a-time-with-verificationInstall on the next endpoint only if the previous one succeeded and passed verificationCritical services where you want to confirm the certificate works before continuing

Parallel is the default and works well in most cases. Use sequential or one-at-a-time-with-verification for production environments where you want to minimise risk.


Error Handling

Determines what happens if installation fails on an endpoint.

Strategy Description
StopStop the entire plan at the first failure. Already installed endpoints keep the new certificate.
ContinueSkip the failed endpoint and continue with the next ones.
RollbackStop at the first failure and undo changes on all endpoints that have already been updated. The old certificate is reinstalled.

Stop is the default. Rollback is recommended for environments where all servers must have the same certificate, e.g. servers behind a load balancer.


Maintenance Windows

Define when certificates may be installed. The deployment plan automatically waits for the next available window.

Examples:

Mon-Fri 02:00-05:00

Deployment runs only at night on weekdays

Sun 22:00-06:00

Only on weekends

Always

No restriction (default)

Configure maintenance windows under Deployment plan > Schedule. You can create multiple windows and assign them to different plans.

Note: If a certificate needs to be renewed and the maintenance window does not open within the next 7 days, sslbrain sends a warning. Ensure the window is wide enough for renewals to run before the certificate expires.


Automatic Deployment on Renewal

When a certificate is renewed, the associated deployment plan runs automatically. No manual action is required.

The flow:

  1. The certificate approaches expiry (30 days)
  2. sslbrain renews the certificate via its internal ACME client
  3. The deployment plan runs automatically
  4. The certificate is installed on all endpoints in the plan
  5. sslbrain verifies that the new certificates are active

If a deployment fails, the configured error handling applies (stop, continue or rollback). sslbrain sends a notification with details about the failure.

What to verify

  • That the deployment plan is associated with the certificate (under the Deployment tab)
  • That credentials for all endpoints are still valid
  • That the maintenance window allows deployment before the certificate's expiry
  • That notifications are configured so you are alerted on failure

Tip: Once set up, certificate renewal and deployment run fully automatically without intervention.