Deployment / Docker release 1.0.0-rc.2

Run PQCTrust on your own server with one command.

The all-in-one evaluation image holds the database, every PQCTrust module and the web front door. Pull it from Docker Hub, start it, and sign in to the consoles about 15 minutes later. Nothing else is downloaded while it installs.

What is inside

Every module, in the order you set them up.

The first start creates fresh random passwords, sets up PQCTrust CA from blank (Root CA, Issuing CA, profiles, CRL and OCSP), links the HSM Service to it and opens one start page with every console.

  1. PQCTrust CA

    Root and issuing CAs, certificate profiles, CRL, OCSP and time-stamping (TSA).

  2. HSM Service + HSM Manager

    Key generation and signing through PKCS#11, here with a SoftHSM2 test token; keys, clients and tenants in HSM Manager.

  3. PQCTrust RA

    Registration authority: identity checks, enrolment approval and API clients.

  4. WebManager

    Platform users, service clients and the licence.

  5. Signing administration + signing portal

    SSA Admin configures the signing service; SSA is where users sign PDF documents.

  6. RSSP API + Credential Service

    Remote signing API for applications; the Credential Service routes each request to the right CA and key location.

  7. MariaDB + Apache front door

    One database for all modules and one web address (port 8000) for every console.

Before you start

Check the host.

Use a server or virtual machine you can dedicate to the evaluation. The container runs its own Docker engine inside, so it needs --privileged.

Operating systemLinux on x86_64 (amd64). Tested on Ubuntu 22.04 and 24.04; Debian 12 works the same way.
CPU, memory, disk4 vCPU, 16 GB RAM, 40 GB free disk.
DockerDocker Engine 24 or later (step 1 installs it).
NetworkOutbound HTTPS to Docker Hub for the download. The consoles listen on 127.0.0.1:8000 only until you decide to publish them.
Not supportedApple Silicon (arm64) machines, and Docker Desktop on Windows or macOS.

Quick start

From download to sign-in in seven steps.

Run the commands on the Linux server. Each block has a copy button.

  1. Install Docker Engine

    Skip this step if sudo docker version already shows a server version. Shown for Ubuntu; on Debian replace ubuntu with debian in the two URLs.

    sudo apt-get update && sudo apt-get install -y ca-certificates curl
    sudo install -m 0755 -d /etc/apt/keyrings
    sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
    echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu $(. /etc/os-release; echo $VERSION_CODENAME) stable" | sudo tee /etc/apt/sources.list.d/docker.list
    sudo apt-get update && sudo apt-get install -y docker-ce docker-ce-cli containerd.io
    sudo docker version
  2. Download the image

    About 3.5 GB. All tags are listed on Docker Hub.

    sudo docker pull docker.io/thrivosign/pqctrust:aio-1.0.0-rc.2
  3. Start the container

    Two volumes keep the data and the generated passwords across restarts and updates of the container.

    sudo docker run -d --name pqctrust --privileged --restart unless-stopped --stop-timeout 120 \
      -p 127.0.0.1:8000:8000 \
      -v pqctrust-engine:/var/lib/pqctrust -v pqctrust-data:/opt/thrivotrust \
      docker.io/thrivosign/pqctrust:aio-1.0.0-rc.2

    Want to use a public name such as pqc.example.com? Choose it now: it is written into every certificate's CRL and OCSP links at the first start. See Make it reachable by name.

  4. Wait for READY

    The first start installs and checks every service, which takes about 10 to 15 minutes. Follow it with the command below; the last line says READY. Press Ctrl+C to stop following; the container keeps running.

    sudo docker logs -f pqctrust
  5. Open the start page

    On the server itself open http://localhost:8000/. From your own computer, forward the port over SSH first, then open the same address in your browser:

    ssh -L 8000:127.0.0.1:8000 you@your-server

    The start page lists every console in setup order, with what each one is for.

  6. Sign in

    Every installation generates its own passwords; there are no default passwords. Read each one on the server:

  7. Check that everything is healthy

    The release check tests every service inside the container and must end with verdict PASS.

    sudo docker exec pqctrust pqctrust-aio-verify

Optional

Make it reachable by name.

Keep the consoles on 127.0.0.1 while you evaluate alone. To share them with your team, give the container its public name and put an HTTPS front end in front of port 8000.

1. Start with the public name

Use this instead of step 3, on a fresh installation (the name cannot change after the first start without reinstalling).

sudo docker run -d --name pqctrust --privileged --restart unless-stopped --stop-timeout 120 \
  -p 127.0.0.1:8000:8000 \
  -v pqctrust-engine:/var/lib/pqctrust -v pqctrust-data:/opt/thrivotrust \
  -e PUBLIC_HOST=pqc.example.com \
  docker.io/thrivosign/pqctrust:aio-1.0.0-rc.2

Add -e PUBLIC_URL=https://pqc.example.com only if the public address is not https:// plus the name.

2. Publish port 8000 over HTTPS

Point a Cloudflare Tunnel public hostname at http://localhost:8000, or put your own TLS reverse proxy (nginx, Apache, a load balancer) in front of it.

Protect the administration paths before you publish: /ca/admin, /hsmManager, /webManagerv2, /ssa-admin and /ra. Use an access policy (for example Cloudflare Access or a VPN) in addition to the sign-in.

Day-to-day

Operate, stop and remove.

All commands run on the server. The container restarts by itself after a reboot.

sudo docker logs pqctrust                        # progress and the READY summary
sudo docker exec pqctrust pqctrust-aio-verify    # release check of every service inside (verdict PASS)
sudo docker exec pqctrust docker ps              # the services running inside
sudo docker stop -t 120 pqctrust                 # clean stop: services first, then the engine
sudo docker start pqctrust                       # later starts take 2-3 minutes; data is kept

Remove everything

Deletes the container, all data and all generated passwords.

sudo docker rm -f pqctrust
sudo docker volume rm pqctrust-engine pqctrust-data

Docker Hub tags

One repository, one tag per component.

Every tag is docker.io/thrivosign/pqctrust:<component>-1.0.0-rc.2. Most evaluators need only aio.

TagWhat it isCompressed
aio-1.0.0-rc.2All-in-one evaluation container: everything below in one container. Start here.3.4 GB
installer-1.0.0-rc.2Install package for the one-container-per-service layout (never run).38 MB
mariadb-1.0.0-rc.2Database (MariaDB 11.8).106 MB
tools-1.0.0-rc.2Database migrations and data initialisation.427 MB
ca-1.0.0-rc.2PQCTrust CA: CA, CRL, OCSP, TSA.170 MB
hsm-1.0.0-rc.2HSM Service with a SoftHSM2 token for evaluation.125 MB
hsm-manager-1.0.0-rc.2HSM Manager.152 MB
ra-1.0.0-rc.2PQCTrust RA registration authority.137 MB
credential-1.0.0-rc.2Credential Service.390 MB
webmanager-1.0.0-rc.2WebManager administration.395 MB
ssa-admin-1.0.0-rc.2Signing administration.373 MB
ssa-1.0.0-rc.2Signing portal.406 MB
rssp-1.0.0-rc.2RSSP remote signing API.397 MB
monitor-1.0.0-rc.2Service monitor (optional).132 MB
edge-1.0.0-rc.2Apache front door for the multi-container layout (amd64 + arm64).45 MB

Advanced

Server install: one container per service.

For a server you keep: the database and every module in their own containers, data under /opt/thrivotrust, no --privileged. Needs Ubuntu 22.04/24.04 or Debian 12 on amd64 with Docker Engine 24+, the Compose plugin and Node.js 20.

  1. Download the images and give them their release names

    About 3 GB. The stack runs the images under docker.io/pqctrust/<component>:1.0.0-rc.2, so each one is re-tagged after the pull.

    V=1.0.0-rc.2; R=docker.io/thrivosign/pqctrust
    for n in mariadb tools ca hsm hsm-manager ra credential webmanager rssp ssa ssa-admin monitor; do
      sudo docker pull $R:$n-$V && sudo docker tag $R:$n-$V docker.io/pqctrust/$n:$V || break
    done
  2. Get and check the install package

    sudo docker pull $R:installer-$V
    sudo docker create --name pqctrust-installer $R:installer-$V
    sudo docker cp pqctrust-installer:/pqctrust-$V-linux-amd64.tar.gz . && sudo docker cp pqctrust-installer:/SHA256SUMS .
    sudo docker rm pqctrust-installer && sha256sum -c SHA256SUMS
    tar -xzf pqctrust-$V-linux-amd64.tar.gz && cd pqctrust-$V-linux-amd64
  3. Install and start

    The second line is a 1.0.0-rc.2 fix that must run before the first start: it makes sure the generated HSM Manager password meets the password policy. The check must end with verdict PASS.

    sudo ./install.sh --profile qa --create-env --generate-secrets
    sudo sh -c 'f=/opt/thrivotrust/secrets/manager_bootstrap_password; grep -q "[-_]" "$f" && grep -q "[0-9]" "$f" && grep -q "[A-Z]" "$f" && grep -q "[a-z]" "$f" || { chmod 0600 "$f"; printf "%s" "-Aa1" >> "$f"; chmod 0444 "$f"; }'
    sudo ./install.sh --start
    cd /opt/thrivotrust/deploy && sudo ./scripts/verify-release.sh --running --wait 300 --na monitor="optional monitor not enabled"
  4. Set up the CA and the HSM from blank

    Run it before the first sign-in to the CA console. Use your public address for THRIVO_INT_CA_PUBLIC, or leave it out on a machine that will never be public. About 4 minutes; safe to run again.

    cd /opt/thrivotrust/deploy
    sudo THRIVO_INT_CA_PUBLIC=https://pqc.example.com/ca ./scripts/integration/bootstrap-dev-integration.sh
  5. Start the front door

    One address, http://127.0.0.1:8000/, for every console. Sign in as in step 6 of the quick start, reading the passwords with sudo cat /opt/thrivotrust/secrets/<name>.

    sudo docker run -d --name pqctrust-edge --restart unless-stopped --network host --read-only --tmpfs /tmp \
      -e PUBLIC_HOST=pqc.example.com docker.io/thrivosign/pqctrust:edge-1.0.0-rc.2
    curl -s http://127.0.0.1:8000/edge-health    # ok

Troubleshooting

If something does not start.

Most problems come from the host. When you contact us, send the output of sudo docker logs pqctrust; it contains no passwords.

The first start seems stuck

It installs and checks every service and normally takes 10 to 15 minutes, more on slow disks. Keep following sudo docker logs -f pqctrust until READY.

"exec format error" or the image does not run

The host is not x86_64. This release is built for linux/amd64 only; Apple Silicon and other arm64 machines are not supported yet.

The container exits right away

Check that --privileged is in the command and that your host policy (for example rootless Docker or a hardened runtime) allows privileged containers. Use the server install above if it cannot.

Port 8000 is already in use

Publish another host port, for example -p 127.0.0.1:8080:8000, and open http://localhost:8080/.

The CA console rejects the authenticator code

The codes depend on the clock. Make sure the server and your phone have the correct time (NTP), and add the key from ca_admin_totp_secret again by manual entry.

WebManager asks for a licence

That is expected. Enrolment and signing need an evaluation licence; ask us for one.

Out of memory or services restarting

The full stack needs 16 GB RAM. Check free -h and sudo docker exec pqctrust docker ps for restarting services.

Evaluation only. In this release the HSM Service runs in TEST mode with a SoftHSM2 software token, which is not hardware key protection; packages are signed with a test key; there is no Update Center inside the all-in-one image. Enrolment and signing need a WebManager evaluation licence. Do not use real personal data or production keys.

DOCKER EVALUATION

Evaluate PQCTrust in your own environment.

Pull the evaluation image from Docker Hub and follow the Docker release guide, or ask us to run an assisted evaluation with your HSM.