TRINITY logoTRINITYVDI

TRINITY VDI / Documentation / 3. Certificates

3. Certificates for every component

Create keys and requests with OpenSSL, sign them on a Windows CA with certreq, build PEM chains and trust the root CA on every Ubuntu server.

Download the packages
Documentation pages

One place makes the keys and requests (trinity01), your CA signs them, and every server trusts the CA's root. The recording servers make their own certificate (the portal pins it at pairing).

3.1 Keys and requests (trinity01)

mkdir -m 700 ~/certs && cd ~/certs
for n in trinity cs ntfy vdi; do
  case $n in vdi|ntfy) d=$n.example.com;; *) d=$n.corp.example.com;; esac
  openssl req -new -newkey rsa:3072 -nodes -keyout $n.key -out $n.csr -subj "/CN=$d" -addext "subjectAltName=DNS:$d"
done
chmod 600 *.key

vdi and ntfy are published on the internet: users' devices and phones must trust them, so a certificate from a public CA is best for those two. Sign them there, or with your CA if only managed devices use them.

3.2 Sign at the CA (Windows)

On the CA server (or a machine with the CA tools), in PowerShell:

$u = Read-Host 'Linux admin user'
cd C:\Temp\certs
scp "${u}@10.0.10.33:certs/*.csr" .
foreach ($n in 'trinity','cs','ntfy','vdi') { certreq -submit -attrib 'CertificateTemplate:WebServer' "$n.csr" "$n.cer" }
scp (Get-ChildItem *.cer).Name "${u}@10.0.10.33:certs/"

The WebServer template must allow enrolment by your account. Copy corp-root.cer (1.4) along.

3.3 PEM files and checks (trinity01)

cd ~/certs
openssl x509 -in corp-root.cer -out corp-root.crt
for n in trinity cs ntfy vdi; do
  openssl x509 -in $n.cer -out $n.pem && cat $n.pem corp-root.crt > $n.crt
  openssl verify -CAfile corp-root.crt $n.pem
  [ "$(openssl x509 -in $n.crt -noout -pubkey | sha256sum)" = "$(openssl pkey -in $n.key -pubout | sha256sum)" ] && echo "$n: key matches"
done

Each *.crt holds the certificate with the chain; keep ~/certs on trinity01: the chapters below copy their files from there.

3.4 Trust the root on every server

Copy corp-root.crt to every TRINITY server, then on each:

sudo install -m 644 ~/corp-root.crt /usr/local/share/ca-certificates/corp-root.crt
sudo update-ca-certificates

Names, addresses and accounts in the examples (corp.example.com, 10.0.x.x, CORP\…) are examples: use your own. TRINITY 1.2.1, December 2026.