Help

Configuration Guide

How to Update SSL Certificates in Monofor Products

Updated 20 Nov 2026 6 min read

1. Purpose

This document covers how to update the SSL/TLS certificates used in Monofor products (Monopam, Monosign and Monosync): backing up the current certificates, deploying the new certificates to the related servers, and verifying the result after the update.

The procedure applies to single-server installations as well as High Availability (HA) and Disaster Recovery (DRC) environments.

2. Choose Your Scenario

Before you start, check how many servers your environment has and follow the matching scenario:

Environment

Scenario to follow

Sections

Single node

Scenario A – Single-Node Installation

Sections 3, 4 and 5

Multiple nodes (HA and/or DRC)

Scenario B – Multi-Node Installation

Sections 3, 4 and 6

Sections 3 (obtaining the certificate files) and 4 (verifying the certificate) are common to both scenarios. Section 7 (rollback) applies if a problem occurs.

2.1 Example Server Structure (Multi-Node)

  • MAIN_NODE – Main Monofor server

  • HA_NODE_01 – First HA server

  • HA_NODE_02 – Second HA server

  • DRC_NODE – Disaster recovery server

Note: Include HA and DRC servers only if they exist in your architecture.

3. Obtaining the SSL Certificate Files

For the SSL certificate update, obtain from the customer the SSL certificate in PFX format, including the private key and the required certificate chain.

The PFX file provided by the customer must contain the following components:

  • Wildcard SSL certificate: A server certificate that can be used for multiple subdomains.

  • Intermediate certificate: Provides the validation link between the server certificate and the trusted root certificate.

  • Root certificate: The top-level trust authority on which the certificate chain is based.

3.1 Certificate Formats to Request from the Customer

Ask the customer to convert the PFX file to the following formats and send them to you:

  • certificate.crt (fullchain): Contains the server certificate and the required certificate chain.

  • certificate.rsa (private key): Contains the private key of the server certificate.

Important: certificate.rsa must be kept confidential and delivered through a secure transfer method. Verify that the certificate and private key match after delivery.

4. Verifying the Certificate

4.1 Checking Certificate Details

openssl x509 -in certificate.crt -noout -subject -issuer -dates

 Check the certificate’s domain name, issuing authority and validity dates.

4.2 Checking that the Certificate and Private Key Match

Public key hash of the certificate:

openssl x509 -in certificate.crt -pubkey -noout \

| openssl pkey -pubin -outform DER | sha256sum

Public key hash derived from the private key:

openssl pkey -in certificate.rsa -pubout -outform DER \

 | sha256sum

The SHA-256 outputs of both commands must be identical.

4.3 Verifying the Certificate Chain

openssl verify -CApath /etc/ssl/certs \

  -untrusted certificate.crt certificate.crt

Expected result: certificate.crt: OK

Note: This verification depends on the server’s trusted certificate store. Check the hostname for the domain in use separately.

5. Scenario A – Single-Node Installation

Follow this section if Monofor runs on a single server. All steps are performed on that server.

5.1 Staging the New Certificates

Copy the new certificates to the server’s temporary staging directory /home/monofor/:

/home/monofor/certificate.crt

/home/monofor/certificate.rsa

ls -lah /home/monofor/

Note: This directory is only a staging area. Having the files here does not activate the certificate.

5.2 Backing Up the Current SSL Certificates

Active SSL certificate directory: /opt/monofor/lb/ssl/

5.2.1 Creating the Backup Folder

mkdir -p /home/ssl-backup

chmod 700 /home/ssl-backup

5.2.2 Backing Up the Current Certificates

cp -p /opt/monofor/lb/ssl/certificate.crt /home/ssl-backup/

cp -p /opt/monofor/lb/ssl/certificate.rsa /home/ssl-backup/

chmod 600 /home/ssl-backup/certificate.rsa

5.2.3 Verifying the Backup

sha256sum /opt/monofor/lb/ssl/certificate.crt /home/ssl-backup/certificate.crt

sha256sum /opt/monofor/lb/ssl/certificate.rsa /home/ssl-backup/certificate.rsa

The hash values of each file pair must be identical.

5.3 Placing the New Certificates

Make sure the current certificates are backed up and the new certificates are verified. It is recommended to prepare the new files with temporary names first.

5.3.1 Preparing the New Certificates

cp /home/monofor/certificate.crt /opt/monofor/lb/ssl/certificate.crt.new

cp /home/monofor/certificate.rsa /opt/monofor/lb/ssl/certificate.rsa.new

5.3.2 Checking File Permissions

Set the ownership and permissions of the new files according to the needs of the running services. In particular, only authorized users should be able to access the private key.

5.3.3 Activating the New Certificates

During the maintenance window, after the file permissions are verified:

mv -f /opt/monofor/lb/ssl/certificate.crt.new /opt/monofor/lb/ssl/certificate.crt

mv -f /opt/monofor/lb/ssl/certificate.rsa.new /opt/monofor/lb/ssl/certificate.rsa

5.4 Restarting Monofor Services

To activate the new certificates, run the restart procedure supported by your installation:

monofor-restart

monosign-restart

monosync-restart

monopam-restart

Note: Verify which of these commands are available and which services they affect for your installed product version.

5.5 Post-Update Checks

5.5.1 HTTPS Access Check

Open the product URL in a browser and confirm that the new certificate is served, for example:

5.5.2 Application Checks

  • HTTPS access to Monosign and Monopam

  • User login and authentication

  • SSO integrations

  • Load Balancer service status

  • Certificate validity dates

5.5.3 Docker Service Check

docker service ls

docker service ps monofor_loadbalancer

Check the status of the related services.

6. Scenario B – Multi-Node Installation (HA / DRC)

Follow this section if your environment has more than one server. In multi-server environments, the certificate update must be applied to every SSL endpoint:

  • MAIN_NODE

  • HA_NODE_01

  • HA_NODE_02

  • DRC_NODE

6.1 Updating the Main Node

On MAIN_NODE, apply steps 5.1 to 5.3 of Scenario A (staging, backup and placing the new certificates). Do not restart the services yet.

6.2 Transferring Files to the Other Nodes with SCP

Example of sending the certificates from the main server to a target node:

scp -P 2222 -p /opt/monofor/lb/ssl/certificate.crt \

  monoforha@NODE_IP:/home/monofor/

scp -P 2222 -p /opt/monofor/lb/ssl/certificate.rsa \

  monoforha@NODE_IP:/home/monofor/

  • 2222: Example SSH port.

  • monoforha: Example SSH user.

  • NODE_IP: IP address of the target node.

Important: The SSH user must have write permission on the target directory. The private key must be transferred and stored securely.

Repeat the transfer for each node (HA_NODE_01, HA_NODE_02, DRC_NODE).

6.3 Steps on Each Target Node

On every target node, perform the following steps. The commands are the same as in Scenario A:

  1. Back up the current certificates (5.2.1 – 5.2.2).

  1. Verify the integrity of the backups (5.2.3).

  1. Confirm the new certificates are in the staging directory /home/monofor/.

  1. Check that the certificate and private key match (4.2).

  1. Place the new files in the active SSL directory (5.3).

  1. Verify file permissions and hash values.

Note: Keep a separate backup of the old certificate for each node. Whether to update the DRC environment depends on the architecture and the operations plan.

6.4 Restarting Monofor Services

Run the restart procedure on the nodes (see 5.4):

monofor-restart

monosign-restart

monosync-restart

monopam-restart

Important: In an HA environment, follow an appropriate maintenance plan, for example restarting nodes one at a time so the service stays available.

 6.5 Post-Update Checks

Perform the checks in 5.5 and, in addition:

  • Accessibility of all HA nodes

  • Docker Swarm node and service status:

docker node ls

docker service ls

docker service ps monofor_loadbalancer

 Check the status of the nodes and the related services.

7. Rollback Procedure

If a problem occurs after the certificate update, restore the old certificates from the backup:

cp /home/ssl-backup/certificate.crt /opt/monofor/lb/ssl/

cp /home/ssl-backup/certificate.rsa /opt/monofor/lb/ssl/

 Perform the rollback during a suitable maintenance window, verify the permissions, and restart the services so the certificates are reloaded (5.4). Then repeat the HTTPS and application access checks (5.5).

Multi-node: In Scenario B, perform the rollback on every node that was updated, using that node’s own backup.

 8. Conclusion

This procedure has been prepared to perform SSL certificate replacement in a controlled way in Monofor Monopam, Monosign and Monosync environments.

By following the certificate verification, backup, deployment, service restart and rollback steps, operational risks are reduced.

Important: Since each customer environment may have a different Load Balancer, HA, DRC, SSH and certificate architecture, verify the environment configuration before starting.

Permanent link