You must have root privileges on the Co-signer machine to perform maintenance operations. Ensure you are logged in as a root user or use
sudo to execute the commands.View the logs
You can export the logs to a file in the local directory, tagged with the current date and time, by running the following command:run.logis an automatically generated log containing all of your Co-signer setup and configuration history.customer_cosigner.logcontains workspace operation data, such as the workspace’s transaction approving and signing history and new connection approvals. These log files are separated into 10 files limited to 4.1MB each. They are automatically overwritten in chronological order.
STDOUT stream and written into a log file on the container’s host machine at the location specified below. These log files are rotated with a max file size of 4MB for each log file.
The Co-signer is Docker-based and uses the Docker JSON file driver for logging. By default, the driver uses a standard logging output but can be configured to support other logging mechanisms. Refer to the official Docker documentation for more detailed information.
Verify SGX is enabled on the machine
After completing your server creation or installation, verify that SGX is enabled on the server. The Fireblocks API Co-Signers can only run on SGX-enabled servers with the latest patches, and verifying your configuration helps ensure you do not run into any potential issues later on.- Run the following commands on the server:
- Verify the following:
- SGX: Software Guard Extensions supported is
true. - SGX_LC: SGX launch config supported is
true.
- SGX: Software Guard Extensions supported is

Azure Standard_DC*_v2 instances do not support SGX2, but it is not necessary to run the signer.
List the paired API users
You can list all API users paired with the Co-signer across the connected workspaces by running the following command:Retrieve the public key
You can retrieve the Co-signer’s public key, used by your optional Callback Handler server to authenticate requests from the Co-signer, by running the following command:Stop the Co-signer
You can stop the Co-signer by running the following command:Start the Co-signer
You can Start the Co-signer by running the following command:Restart the Co-Signer
You can restart the Co-signer by running the following command:Retrieve the running image version
You can retrieve your running Co-Signer version by running the following command:Retrieve the script version
You can retrieve your current Co-Signer script version by running the following command:Update the Co-signer
Keep signing available during the upgrade: This upgrade stops your Co-signer container, so the Co-signer can’t sign until it starts again with the new version. To avoid interrupting signing, see Upgrading an API Co-signer Without Interrupting Signing.
curl command to download the script to the path where the existing Co-Signer script is present. Paste the copied URL into the following command:
If you have any issues with finding the installation script URL, please contact Fireblocks Support.
docker ps -a and check the output. There should be no Co-signer container running.
Backup the Co-signer’s database by running the following command:
<image_version> :
docker ps -a and check the output. You should see the Co-signer container running.
If the update process did not succeed, try re-installing the Co-signer using the same version, but first remove the current version of the Co-Signer by running the following commands:
Migrate to a new machine
Use these steps to move an SGX Co-signer to a new machine. The new machine takes over the existing Co-signer, so you don’t need to pair new API users.On the old machine
- Stop the Co-signer:
-
Back up these files:
/databases/cosigner/db/secrets.db: the Co-signer’s secrets database, encrypted with a key generated in the SGX enclave./databases/cosigner/enclave/ra_loader_enclave.signed.so: the enclave loader.- From the folder of the install script, if they exist:
.proxy: your proxy setting..slow_callback_handler_configured: set when your callback handler returns RETRY.
.revisionfile, so the new machine runs the latest version.
On the new machine
- Set up an SGX-capable machine that meets the installation prerequisites for your environment.
- Download the latest install script and make it executable.
- Prepare the machine: run
sudo ./cosigner setupand stop it with Ctrl+C when it asks for the pairing token. By then the script has installed the SGX driver, Docker and docker-compose, logged in to the Fireblocks registry, written the Docker configuration and created the/databases/cosignerfolders. - Copy the backed-up files to the same locations:
secrets.dbto/databases/cosigner/db/ra_loader_enclave.signed.soto/databases/cosigner/enclave/.proxyand.slow_callback_handler_configured, if you have them, to the folder of the install script
- Give the Co-signer user ownership of the files:
- Start the Co-signer:
- Check that it works:
docker psshows the Co-signer container running,docker logsshows it connected, and a test transaction is signed. - Decommission the old machine only after the new one works.
secrets.db or ra_loader_enclave.signed.so, unpair (re-enroll) the API users that are associated with the Co-signer and set up a new Co-signer on the new machine. Install the replacement on Azure, Azure Marketplace, IBM Cloud, Alibaba Cloud, or on-premises.