Skip to main content

Certificates

The Certificates page is the store for the TLS material of your Devices and Uplinks: CA certificates that you trust, and client key pairs that identify the plant to a server. You paste or load a PEM once, and pick the certificate by name in the connection forms.

Certificates page with a CA certificate and a client key pair, with expiry and usage
Certificates page with a CA certificate and a client key pair, with expiry and usage

The page is Administration → Certificates. Its lead says that CA and client key pairs are for TLS of Devices and Uplinks, that PEMs stay in the Console and that the list never returns private keys.

How it works​

  • The certificate is stored in the Console. A device or uplink holds only a reference to it.
  • Rotate replaces the PEM and keeps the certificate id, so every device and uplink that uses it keeps working.
  • The list never shows private keys. A key pair shows "private key stored".

Certificate kinds​

KindContainsUse
CA (trust anchor)A certificate, no private key.To trust the server of a broker, a Kafka cluster, an HTTPS endpoint. The CA dropdowns in forms list only this kind.
Client keypairA certificate and its private key.To identify the plant to a server (mutual TLS, X.509 device authentication).

Step by step: add a certificate​

  1. Open Administration → Certificates and click Add certificate.
  2. Enter Name (for example plant-broker-ca).
  3. Choose Kind: CA (trust anchor) or Client keypair.
  4. Paste the PEM in Certificate PEM. It must include BEGIN CERTIFICATE ("Paste a PEM that includes BEGIN CERTIFICATE."). Or click Load from file.
  5. For a key pair also paste Private key PEM. It starts with BEGIN PRIVATE KEY or BEGIN RSA PRIVATE KEY.
  6. Save.

A CA must not include a private key. A key pair requires one. The Console reads the Subject, Fingerprint, NotBefore and NotAfter from the certificate.

Use a certificate​

  • Uplink (MQTT): turn on SSL, pick the CA for CA, and for mutual TLS pick the key pair for Client Cert and Client Private Key.
  • Uplink (webhook): CA certificate picks a CA. "Skip server certificate check" exists but weakens security.
  • Device: when TLS is on in a device form, the certificate fields offer your stored certificates. OPC UA uses its own Certificate file and Key file fields.

The list​

Column or stateMeaning
ExpiresThe NotAfter date.
Expired, Expiring soonRenew now.
Used byDevices and uplinks that reference it.
Not referencedNothing uses it. Safe to delete.
private key storedA key pair. The key is never shown.

Rotate​

Click Rotate on a certificate and paste the new PEM (and key). The certificate id stays the same, so Devices and Uplinks keep working with the new material. Rotate before the old certificate expires.

Delete​

Click Delete. A certificate that is in use cannot be deleted: "Remove this certificate from Profiles and Destinations first." In this message "Profiles" means Devices and "Destinations" means Uplinks. Remove it from those forms first.

Example: a TLS broker for the demo plant​

  1. Add a CA named plant-broker-ca with the PEM of your broker's CA.
  2. Edit the uplink plant-mqtt. Set Broker Port to 8883, switch on SSL, and pick plant-broker-ca as CA.
  3. Click Test connection, then Save.

Limits and good practice​

  • Keep a calendar for expiry dates. Expired certificates stop connections without warning on the device side.
  • Use a separate key pair per uplink where the server allows. Then you can revoke one.
  • Do not mail private keys. Paste them from a secure place and delete the file.
  • Prefer a CA over Skip server certificate check.

Troubleshooting​

SymptomCauseFix
"Paste a PEM that includes BEGIN CERTIFICATE."The text is not a PEM.Paste the full block, including the BEGIN and END lines.
CA refusedThe PEM has a private key.Remove the key, or use kind Client keypair.
Key pair refusedNo private key.Add the key.
TLS handshake failsWrong CA, expired certificate, wrong host name.Check the dates and that the host name matches the server certificate.
Delete refusedStill in use.Remove it from the devices and uplinks.
The CA is not in the dropdownIt is a key pair.Add the CA with kind CA.