Skip to content

Web certificate (HTTPS)

This page shows you how to view, replace, renew and roll back the certificate that QubeSight presents for its web interface and API. It also explains the installation root certificate, how certificate changes behave in a cluster, and how to recover access if a certificate locks you out.

Community Enterprise

What the web certificate covers

QubeSight terminates HTTPS in its gateway. The web certificate is used for:

  • the web interface, and
  • the REST API on the same gateway.

It does not cover log ingest (syslog, Kafka, SNMP) or the internal service connections. Those have their own TLS settings; see Syslog and Kafka TLS and Certificates and key rotation.

Behaviour of the gateway:

  • HTTPS is on by default. TLS 1.2 is the minimum version.
  • A plain http:// request to the web port is redirected to https:// on the same port.
  • Pages of the web interface are sent with the header Strict-Transport-Security: max-age=31536000; includeSubDomains; preload (HSTS). The header is set by the web interface and passed through unchanged by the gateway; responses of the REST API under /api/v1/ do not carry it. A browser that has opened QubeSight over HTTPS by a DNS name therefore uses only HTTPS for that name and its subdomains for one year, and does not let you click through a certificate warning for it. Browsers do not apply HSTS to IP addresses.
  • Certificate changes take effect immediately for new connections. No service restart is needed, and log ingestion is not affected.
  • Every change (who, when, which fingerprint) is written to the audit log. The private key and the certificate text are never logged.

Where certificates come from

Source (badge on the screen) How it is created
Self-signed (generated automatically) Generated by the product when no other certificate is available. On installations that have an installation root, the generated certificate is issued by that root.
Provided at installation The certificate the installer used (install.sh --tls-cert FILE --tls-key FILE) or the one the web installer generated, carried over so the browser sees the same certificate after the hand-over.
Uploaded (custom) Your organisation's certificate, uploaded on this page.
Cluster certificate The single certificate shared by all nodes of a cluster.

The installation root certificate

Each installation (each cluster) has its own root certificate, valid for 10 years. Unless you uploaded your own certificate, the web certificate is issued by this root. If you add the root once as a trusted root on your computers, the browser warning disappears for good: after renewals, on every cluster node and the virtual IP, and after a restore from backup.

The root is name-constrained. It can only issue certificates for private network addresses, this server's addresses and the DNS domains known at installation. Even with its key, nobody can create a certificate that a browser would trust for an internet site.

The root certificate (public, no key) can be downloaded from the certificate page, or without signing in from https://<server>/api/v1/tls/ca.crt.

Prerequisites

  • You are signed in as admin. The Web certificate (HTTPS) tab is visible to administrators only.
  • Certificate management is configured on the installation. If it is not, the tab shows one of these messages instead of the certificate:
Message Action
Certificate management is not configured on this installation Run ./install.sh --recreate on the server. It generates the management token and recreates the control plane and the gateway.
The gateway is not reachable The gateway may be restarting. Refresh in a few seconds.
The gateway rejected the management token The management token must be the same for the control-plane and gateway services. Check .env and recreate both.
HTTPS is switched off on this installation The gateway serves plain HTTP. To switch HTTPS on, run ./install.sh --with-tls --recreate on the server.

The tab starts with the line "The HTTPS certificate of the web UI and the API; changes need no restart." and a Refresh button that reloads the certificate state. Placeholders are shown while the state loads. If the state cannot be read, a red box gives the reason, for example "The gateway is not reachable. Try again in a few seconds." Results of every action (activate, renew, return, delete a request) appear in a notice at the top that you can close.

View the certificate in use

  1. Open Platform → Settings → Web certificate (HTTPS).
  2. Stay on the Certificate in use sub-tab.

Settings → Web certificate (HTTPS) → Certificate in use, as admin, with a certificate issued by the installation root: source badge, days left, names covered and the root certifica

Field Description
Source badge and days left Where the certificate came from, and n days left or expired n days ago.
Subject, Issuer Common names; a self-signed certificate is marked (self-signed).
Validity Start and end date.
Key type Key algorithm and signature algorithm.
Names covered The DNS names and IP addresses in the certificate.
SHA-256 fingerprint With a copy button. The fingerprint in your browser's certificate warning must match this one; if it differs, do not accept the connection.
Chain sent The server certificate and the CA certificates the gateway sends.
Download certificate (PEM) The public certificate, without the private key.

Warnings on this sub-tab:

  • {host} is not in the certificate: you are connected with an address the certificate does not cover, so the browser shows a name-mismatch warning. Click Renew to cover this address (not shown when the source badge is Uploaded (custom)), or upload a certificate that covers this name.
  • The certificate expires soon. (fewer than 30 days left) and The certificate has expired.
  • The certificate could not be stored: the certificate store is not writable, so the certificate would be lost when the gateway restarts.

For a self-signed certificate, a note explains that browsers warn once on the first connection, that you can compare the fingerprint and accept it, and that the generated certificate renews itself before it expires.

The sub-tab also shows the The installation's root certificate card (name, SHA-256 fingerprint, whether the served certificate is issued by it, Download the root certificate and How do I add the root certificate?), the cluster state in a cluster, and the Previous certificate card.

The Change the certificate sub-tab is shown only while the gateway has an active certificate.

Trust the installation root on your computer

  1. On Certificate in use, click Download the root certificate.
  2. Compare the SHA-256 fingerprint on the screen with the fingerprint of the downloaded file.
  3. Add the file as a trusted root:
    • macOS: open the file; Keychain Access adds it to "System". Double-click the certificate, open Trust and set "When using this certificate" to Always Trust. Restart the browser.
    • Windows: double-click the file, choose Install Certificate → Local Machine → Place all certificates in the following store → Trusted Root Certification Authorities.
    • Linux (Ubuntu): copy the file to /usr/local/share/ca-certificates/ and run update-ca-certificates.
    • Linux (RHEL, Oracle Linux): copy the file to /etc/pki/ca-trust/source/anchors/ and run update-ca-trust.
    • Firefox uses its own store: Settings → Privacy & Security → View Certificates → Authorities → Import, then select "Trust this CA to identify websites".
  4. Reload the QubeSight page. The browser no longer warns.

In a managed environment, distribute the root through your usual device-management tooling instead.

Upload your own certificate

Use this when your organisation issues the certificate (for example from a corporate CA or a public CA).

Requirements for the certificate

  • PEM format, at most 256 KB, at most 10 certificates in the chain.
  • The server certificate first, followed by the intermediate certificates of your CA. The root certificate is not needed.
  • Contains a subject alternative name (SAN) for every address users type in the browser.
  • Issued for server authentication (serverAuth), with a key usage that allows digital signatures.
  • Key: RSA of at least 2048 bits, or ECDSA P-256, P-384 or P-521. The private key must not be password-protected. To remove a password: openssl pkey -in key.pem -out key-nopass.pem.

Steps

  1. Open Platform → Settings → Web certificate (HTTPS) → Change the certificate.
  2. Under Upload your own certificate, paste the chain into Certificate chain (PEM), or click Choose file….
  3. Paste the private key into Private key (PEM, not password-protected), or click Choose file…. Use Show key / Hide key to check what you pasted. Leave the key empty if you created a certificate signing request on this page (see below).
  4. Click Check. The result lists Errors, Warnings and Notes. "The certificate is usable." means you can continue; "The certificate cannot be used: fix the errors below." means it cannot be activated. Changing either field clears the result.
  5. Click Activate certificate and confirm with Yes, activate. Check and Activate certificate are enabled once the certificate field is filled; the certificate is checked again on activation.

The private key is sent with this request only: it is stored nowhere but in the gateway, never written to a log or the audit trail, and the page does not put it into browser storage.

Clear empties both fields and the check result. A file larger than 256 KB is refused when you choose it ("The file is too large (256 KB at most).").

Settings → Web certificate (HTTPS) → Change the certificate, with a certificate and key pasted and the Check result showing "The certificate is usable." and one warning.

Verify the result

  • The notice says "The certificate was activated." and "The gateway confirmed that it now serves the new certificate."
  • Reload the page. The browser shows the new certificate; its fingerprint matches SHA-256 fingerprint on Certificate in use.

If the notice says the gateway could not confirm the new certificate, use Return to the previous certificate.

An invalid certificate is never activated. The main checks are:

Check Result
Private key does not match the certificate Error
Certificate expired or not yet valid Error
No subject alternative name (SAN) Error
Not issued for server authentication; key usage without digital signature Error
Weak key (below RSA 2048 / ECDSA P-256) or weak signature algorithm Error
Password-protected or unreadable key; key pasted in the certificate field or the reverse Error
The address you are connected with is not covered Warning
Chain out of order (it is re-ordered), chain broken, or only the server certificate sent Warning
Expires within 30 days; validity longer than 398 days (for a CA-issued certificate) Warning
Looks like a CA certificate Warning

Create a certificate signing request (CSR)

Use a CSR when your CA signs the certificate and you want the private key to be generated on the server and never leave it.

  1. Open Change the certificate and go to Certificate signing request (CSR).
  2. Fill in:

    Field Description
    Common name (CN) Optional. When empty, the first name in the list below is used.
    Names and IP addresses (SAN) Every name and address users type in the address bar. Separate with commas, spaces or new lines.
    Key type ECDSA P-256 (recommended), RSA 2048 or RSA 3072.

    The SAN list is filled in advance with the address you are connected with and, in a cluster, every cluster address. Create request stays disabled while the list is empty.

  3. Click Create request. "The certificate request was created. Send the text below to your CA." appears and the request text is shown.

  4. Click Copy or Download request (.csr) and send the request to your CA.
  5. When the CA returns the certificate, paste it into Certificate chain (PEM) under Upload your own certificate, leave the private key empty, then Check and Activate certificate. The notes say "The private key was taken from the pending certificate request (CSR)."

While a request is pending, the page shows Pending request with its creation date, names and key type. Delete the request and its key removes the request and its private key from the server; a certificate the CA issues for that request can then no longer be activated.

In a cluster, the request and its key are kept encrypted in the cluster database, so you can activate the signed certificate from any node. Include every address of the cluster (each node and the virtual IP) in the SAN list.

Settings → Web certificate (HTTPS) → Change the certificate → Certificate signing request (CSR) with a pending request, showing the Copy and Download request (.csr) buttons.

Renew the generated certificate

The generated certificate renews itself automatically when fewer than 30 days remain. It is valid for 397 days. Renew it by hand when you want it to cover additional names or addresses.

  1. Open Change the certificate and go to Renew the self-signed certificate.
  2. In Names and IP addresses, list every name and address, for example qubesight.example.com, 192.0.2.10. The field is filled in advance with the names of the current certificate and the address you are connected with. localhost and 127.0.0.1 are always added. In a cluster, the node addresses and the virtual IP are added as well.
  3. Click Regenerate… and confirm with Renew.

A new key pair and certificate are generated (issued by the installation root when the installation has one). The current certificate is kept as the previous one.

You can also click Renew to cover this address in the "not in the certificate" warning on Certificate in use; it renews with the address you are connected with.

Return to the previous certificate

The previous certificate is always kept. To go back:

  1. On Certificate in use, find the Previous certificate card.
  2. Click Return to the previous certificate and confirm with Yes, return.

The certificate in use changes at once, and the current one becomes the previous one, so a second rollback undoes the first.

Certificates in a cluster

A cluster has one web certificate. Whichever node holds the virtual IP, the browser sees the same certificate.

  • Uploads, renewals and rollbacks done on any node are stored as the cluster certificate and picked up by the other nodes within 30 seconds. The result notice then adds "The other nodes pick up the same certificate within 30 seconds." If the cluster certificate could not be stored, the notice says so: the other nodes do not get the certificate and this node returns to the cluster certificate shortly.
  • In a cluster, the Change the certificate sub-tab adds a note to the CSR card (the request and its key are kept encrypted in the cluster database) and to the renewal card ("In the cluster the generated certificate also covers: …" with the cluster addresses).
  • If the cluster database cannot be read, the certificate is not changed on a single node; try again shortly.

The Across the cluster card on Certificate in use:

Element Description
n/m nodes in sync Green when every node serves the cluster certificate, amber otherwise.
No cluster certificate yet "No cluster certificate yet: within a few seconds the source node adopts the certificate it already serves as the cluster certificate (the certificate does not change)."
Nodes not in sync "These nodes do not serve the cluster certificate yet: … Sync retries within 30 seconds; if the virtual IP moves to such a node the browser may show a certificate warning."
This node pending "This node's gateway will pick up the cluster certificate within a few seconds." when this node still serves a different certificate.
Cluster certificate line "Cluster certificate: {subject} ({fingerprint}) — {when}, {who}, {how}." The user is system for automatic changes; how is one of existing certificate adopted, uploaded, regenerated, rolled back or renewed before expiry.
Node table Node (name and address; (this node) marks the node you are on), State (In sync, Different, Error, Out of date, Unknown, Waiting), Served fingerprint and Last checked.
Node error Under the state of a node that is not in sync: Gateway not reachable, The gateway rejected the management token, HTTPS is off on this node, PostgreSQL could not be read, Waiting for the cluster certificate, The certificate could not be read from the gateway, The certificate could not be adopted, Renewal failed, The private key could not be decrypted (the server key may differ between nodes) or The gateway did not install the certificate.
Footer "A node that just joined the cluster serves its own certificate for a few seconds after its first start, then picks up the cluster certificate."

If the cluster state cannot be read, the card shows only "The cluster certificate state could not be read (PostgreSQL). Refresh before making changes."

Settings → Web certificate (HTTPS) → Certificate in use on a two-node cluster, showing the Across the cluster card with "2/2 nodes in sync".

Recover access if the browser cannot connect

If browsers cannot connect because of a certificate you uploaded, use a shell on the server, in the installation directory:

  1. Stop the gateway, delete the stored certificates and start it again. A new certificate is generated at the next start:

    docker compose stop gateway && docker compose run --rm --no-deps gateway -tls-reset && docker compose up -d gateway
    
  2. As a last resort, set GATEWAY_TLS=off in .env and restart the gateway. The interface is then served over plain HTTP. Use this only temporarily, or when your own TLS terminator sits in front of QubeSight.

If the browser refuses to let you past the warning because it remembered the strict transport policy (HSTS) that QubeSight sent for that name, use another browser or a private window, connect by IP address, or delete the browser's HSTS entry (Chrome: chrome://net-internals/#hsts). The same applies after switching to plain HTTP: a browser that remembered the policy keeps using https:// for that name.

The same instructions are on the page under If you can no longer reach the UI.

Settings → Web certificate (HTTPS) → Change the certificate with the "If you can no longer reach the UI" section expanded.

Troubleshooting

Symptom Cause and action
Browser warns "not secure" on every visit The installation root is not trusted on that computer. Trust the installation root or upload your organisation's certificate.
Browser warns about a name mismatch You use an address the certificate does not cover. Renew with that address or upload a certificate that covers it.
Banner "Connection to the server keeps dropping" after a change The browser rejects new connections with the new certificate. Reload the page and accept the warning again, or trust the root.
A cluster node shows Different Sync retries within 30 seconds. If it persists, check the node's gateway and the message in the State column.
Some command-line tools reject the certificate when you connect by IP address Connect with a DNS name. The gateway then serves a DNS-only variant of the certificate that these tools accept.

Limitations

  • The web certificate covers the web interface and the API only, not log ingest or internal service ports.
  • Password-protected private keys are not supported.
  • Only one previous certificate can be restored with Return to the previous certificate.
  • Web interface pages carry an HSTS header (max-age=31536000; includeSubDomains; preload) that cannot be changed or switched off from the interface. A browser that received it keeps using HTTPS for that host name for one year, also if you later switch to plain HTTP.
  • Turning HTTPS on or off, and configuring certificate management, needs install.sh on the server; it cannot be done from the interface.
  • Certificate renewal is automatic only for the generated certificate. An uploaded certificate must be replaced by you before it expires; the page warns 30 days ahead.