CodeSign Secure Documentation
  • Overview
    • About CodeSign Secure
    • Getting Started
    • Documentation Guide
    • Portal Overview
    • Troubleshooting
      • FAQ
    • Glossary
  • Reference Guide
    • Header Bar
      • CodeSign Secure Documentation
      • Swagger API
      • Profile Section
    • Dashboard
      • Key Performance Indicators
      • Issued Certificates
      • Signatures Generated
      • HSM Health Check
    • Keys and Certificates
      • Key and Certificate Lifecycle
    • App Management
    • Signing Requests
      • Approval Workflows
    • Signing Tools
    • Reports
      • Signing Request Report
      • Audit Trail
      • Certificate Report
      • Client Report
    • Logs
    • System Setup
      • Identity Store
      • Backup
      • User
      • Roles and Permissions
      • Email
      • Signing Projects
      • SSL/TLS Management
      • Environment
      • Plugins
  • Setup & Architecture
    • Identity and Access Control
    • Architecture and Concepts
    • Installation
      • Windows
        • Installing the Server
        • Ports and Protocols
        • High Availability and Backup
        • Upgrades and Compatibility
    • Security
      • Security Hardening Checklist
      • Client Authentication
      • Designing Signing Policies
  • Release Notes
    • Releases for 2026
      • v3.2.1
    • Releases for 2025
      • v3.2.0
    • Releases for 2024
      • v3.1.0
  • API Reference
    • Getting Started
    • Authorizing Requests
    • Securing API Access
    • Request and Response Conventions
    • Endpoint Reference
      • Signing
      • Signing Requests
      • Certificates
      • Applications and Environments
      • User Management
      • Permissions
      • Email
      • System Setup
      • Reports
      • Dashboard
      • License
  • Integration Guides
    • Signing Capabilities
      • Supported Formats and Platforms
      • Timestamping
      • Windows Signing - SignTool
        • Signing
        • Macro Signing
      • Apple Signing
      • AppX & MSIX Signing
      • Visual Studio ClickOnce
      • Jar Signing
      • Sign HLK/HCK using CodeSign Secure
      • NuGet Signing
      • Mage Signing
      • Sign OVA/OVF using Encryption Consulting’s Utility Tool
      • Utility Tool for code signing
      • Container Signing
      • PKCS11 Wrapper
        • APK Signing
        • OpenSSL Signing
        • XML Signing
        • JSign Tool Signing
        • Jarsigner Signing
        • GPG2, Debian & RPM Signing
      • Reproducible Build
        • Automated Hash Validation
        • Reproducible Build Process Flow
        • Pipeline Script Components
        • Hash Validation
    • CI/CD Integration
      • GitHub Actions
      • Jenkins
      • GitLab
      • Azure DevOps
      • TeamCity
      • Bamboo
      • Securing CI/CD Credentials

High Availability, Backup and Disaster Recovery

Keep signing available through failures, and recover the portal data and keys when something goes wrong.

Availability options

CodeSign Secure runs on a single Windows server by default. For high availability, run several CodeSign Secure servers as a cluster behind a load balancer, share one database cluster between them, and run your HSMs in a high-availability configuration. Because the REST API is stateless, any server in the cluster can handle any request.

LayerSingle serverCluster
CodeSign Secure serverOne server; recover by reinstalling and restoring a backupTwo or more servers behind a load balancer
DatabaseLocal MongoDBShared MongoDB cluster (replica set) used by every server
HSMOne HSM or an HA HSM groupHA HSM group, for example an nShield Security World shared by several HSMs or a Luna HA group
RecoveryRestore from backupRemaining nodes keep serving; replace the failed node
Cluster requirements
  • Every server runs the same CodeSign Secure version.

  • Every server connects to the same database cluster.

  • Every server has the HSM client configured for the same HSM or HA group, so every key is available on every node.

  • The load balancer publishes the portal DNS name and forwards traffic to the servers.

  • Clients authenticate with mutual TLS. Configure the load balancer for TLS pass-through so the client certificate reaches the CodeSign Secure servers, unless Encryption Consulting has validated a different setup for you.

  • All servers, the database members, and the HSMs use the same time source (NTP), because tokens and request timers depend on accurate time.

  • Use an HTTPS health check against each server’s portal URL so the load balancer stops sending traffic to a server that doesn’t respond.

What a backup contains
Included in a CodeSign Secure backup
CodeSign Secure logs
Apache logs
A dump of the database: users, roles, applications, teams, environments, certificate records, signing requests, and logged events
Key reference files used by CodeSign Secure

Important: A CodeSign Secure backup can’t restore keys on its own. You need to manually recover the files from a CodeSign Secure backup to continue signing. Back up HSM keys using vendor-provided tools and utilities.

Schedule backups

Set the schedule in Backup. Choose a Frequency of Daily, Weekly or Monthly, and a Location of Server or Cloud (SharePoint).

  • Recovery point: you can lose everything created since the last backup, so for production use Daily.

  • Keep a copy off the server: a backup stored only on the server is lost with the server. Use the Cloud location or download each backup to protected storage.

  • Protect backup files: they contain the full database dump and logs. Store them with the same access controls as the server.

Restore a backup

Important: Restore overwrites the entire database with the backed-up dump. Everything created after that backup, such as new users, certificates, applications, requests and audit events, is removed.

  1. Tell users and pipeline owners that signing is paused, and stop automated pipelines.

  2. Create a new backup of the current state and download it, so you can go back if needed.

  3. In System Setup > Backup, find the backup you want and select Restore.

  4. Manually restore the key files from the backup. Back up HSM keys using vendor-provided tools and utilities.

  5. Sign in and check the Dashboard, HSM Health Check, the certificate list, and recent Audit Trail entries.

  6. Re-create anything made after the backup.

  7. Resume pipelines and confirm that a test signing succeeds.

Recover from the loss of a server
  1. Build a new Windows Server 2022 machine and give it the same portal DNS name, or point the DNS name at it.

  2. Install and connect the HSM client to the same HSM or HA group, and confirm the keys are visible with the vendor tools.

  3. Install the same CodeSign Secure version. See Installing the server.

  4. Restore the most recent backup.

  5. Import the portal TLS certificate, restart the Apache monitor, check the Dashboard, and run a test signing.

Back up HSM keys
  • Follow your HSM vendor’s backup procedure, such as backing up the nShield Security World and its key files, or backing up or cloning the Luna partition.

  • Keep HSM backup media and administrator cards under dual control, and record who can use them.

  • Test that keys can be restored to a replacement HSM, not just that the backup job ran.

  • Keys for publicly trusted code-signing certificates must stay protected in certified hardware, including in backup copies.

Disaster recovery test checklist
  • The latest backup was completed, and a copy exists off the server.

  • The backup was restored on a test server, and users, certificates, and applications appear as expected.

  • The HSM backup was restored or verified, and the keys are visible from the test server.

  • A test file was signed and verified from the recovered environment.

  • The time taken was recorded and compared with your recovery time objective.

On this Page:
Support Privacy Policy Terms of Service

Copyright Encryption Consulting LLC. All rights reserved.