IMD SolutionComputing LibraryShop main store

Troubleshooting

Where the groov EPIC MQTT ca.pem certificate comes from

Edge computing and IIoT Published 6 min read By IMD Solution engineering team

Short answer

The ca.pem file on a groov EPIC must be the CA certificate of the exact MQTT broker the EPIC is configured to reach. There is no universal ca.pem bundled with the device, and Ignition activation has no bearing on it. Get the file from whoever operates that broker, save it as ca.pem, and load it in the MQTT client configuration.

On this page
  1. What the ca.pem file is, and why no EPIC ships one
  2. Ignition activation is a separate problem
  3. Getting the right certificate, step by step
  4. Verifying the pair, with a worked example
  5. The decision for each case
  6. When the right ca.pem is in place and the connection still fails
  7. Questions asked

The ca.pem file for MQTT on a groov EPIC is not something the device ships with, and activating Ignition does not produce one. It is the certificate of the certificate authority that signed your MQTT broker's server certificate, and it exists in exactly one place: with whoever installed and operates that broker. Ask your IT department or the integrator who configured it, save the file as ca.pem, and load it in the EPIC's MQTT client configuration. This article explains why there is no other source, walks through getting and verifying the right file, and gives the decision for each situation you might be in.

What the ca.pem file is, and why no EPIC ships one #

When the EPIC connects over TLS, the broker presents its server certificate. The EPIC decides whether to trust that presentation by checking it against a certificate authority certificate you have loaded locally. The file named ca.pem is that local trust anchor.

A certificate authority certificate is issued per deployment. Your plant's broker was signed by one specific CA, and the next machine's broker was signed by a different one. The EPIC cannot know in advance which one to trust, so it ships none, and neither does Ignition. Any tutorial that tells you to download a generic ca.pem is describing somebody else's broker, and that file will fail on yours.

The groov EPIC's Ignition Edge package provides MQTT client capability, publishing data with a strings payload or the Sparkplug B payload specification. A client needs a trust anchor; it does not come with one. The assumption that a server with a certificate lives inside Ignition Edge on the EPIC is wrong for this purpose, and building your configuration on it wastes an afternoon.

Ignition activation is a separate problem #

An unactivated Ignition trial still loads certificates and completes TLS handshakes. The license state lives in the Ignition module; the certificate check lives in the MQTT client's TLS layer. A certificate validation failure means the file you loaded does not match the broker, not that a trial expired.

So the decision is: install the correct ca.pem first, then deal with activation on its own schedule. Mixing the two problems together sends you hunting for a certificate inside a licensing screen, which is where most people get stuck.

Getting the right certificate, step by step #

  1. Identify the exact broker the EPIC is configured to reach: the host name or address and the TLS port in your MQTT client settings. Port 8883 is the conventional MQTT-over-TLS port, but your operator may have chosen another one.
  2. Ask the administrator or integrator who runs that broker for its CA certificate, in PEM format. Say what it is for: "the CA certificate that signed the broker at this address, for an MQTT client".
  3. Check the file is PEM text. It should contain a block beginning with the line -----BEGIN CERTIFICATE----- and ending with the matching -----END CERTIFICATE----- line.
  4. Load it as the ca.pem in the EPIC's MQTT client configuration and point the client at the broker address from step 1.
  5. Attempt the connection. If TLS validation succeeds, you are done; if not, go to the verification below before changing anything else.

Verifying the pair, with a worked example #

Before blaming the EPIC, prove that the ca.pem you were given actually belongs to the broker you are calling. From any PC with OpenSSL, connect to the broker and validate against your file:

openssl s_client -connect broker.plant.local:8883 -CAfile ca.pem

broker.plant.local is an example address; substitute the host and port from step 1 above. The output ends with a verify result line. On a matching pair you will see Verify return code: 0 (ok). Any other code means the file and the broker do not belong to the same trust chain, and the exact wording of the code, such as a self-signed certificate or an unable-to-get-local-issuer error, tells the administrator which side is wrong.

You can also compare the certificates directly. Show the issuer recorded in your ca.pem:

openssl x509 -noout -subject -issuer -in ca.pem

The issuer in that output must name the authority that appears in the broker's server certificate chain. If the broker operator sent you a server certificate instead of the CA certificate, this comparison exposes it immediately.

Opto 22's knowledgebase documents one more check for the case where a root CA-signed or self-signed setup still refuses to connect: verify the client private key itself with openssl rsa -check -in client-key.pem, where client-key.pem is the name of your private key file. A healthy key returns RSA key ok; a damaged one explains a failure that no certificate swap will fix.

The decision for each case #

  • The broker is run by your IT department. Request the CA certificate from them, load it as ca.pem, done. This is the overwhelmingly common case.
  • You installed the broker yourself. Export the CA certificate from the broker's own certificate store or configuration directory and load that.
  • The broker has no TLS yet. Enable TLS on it with a properly signed server certificate first. Running plain unencrypted MQTT is only acceptable on an isolated network segment that cannot reach the office network or the internet, never on a routed link.
  • You are building a test bench. Create your own certificate authority, sign the broker's server certificate with it, and install that CA certificate as ca.pem. Opto 22's developer documentation follows exactly this pattern for groov EPIC certificates: you supply your own CA key and the certificates it has signed, then install them through groov Manage. The CA you create for the bench must be a separate one from the plant's.

The security stakes are real but brief: the ca.pem defines every identity the EPIC will accept as that broker, so only ever load a CA certificate you received from the broker's operator or created yourself.

When the right ca.pem is in place and the connection still fails #

Then the certificate was never the only fault. Compare the error text against the configured address and port, confirm the broker is listening, and check the client private key with the command shown above. If the EPIC reports a null certificate after a correct file is loaded, the fix for that specific fault is covered in fixing an Ignition Edge null certificate error on a groov EPIC PR1. And if the connection worked until a power loss, the usual cause is a missing or unloaded CA certificate, which is walked through in why MQTT connect fails after a power loss when the CA certificate is missing.

The one-line summary of this whole article: the ca.pem comes from the person who set up your MQTT broker, it must match that broker exactly, and neither the EPIC nor Ignition activation can supply or block it.

Questions asked

Where do I get the ca.pem file for MQTT on a groov EPIC?

From whoever installed and operates the MQTT broker the EPIC connects to, usually your IT department or the system integrator. The file must be the certificate authority certificate that signed that broker's server certificate, in PEM text format. Save it as ca.pem and load it in the EPIC's MQTT client configuration. No other copy of it exists; it is specific to your broker installation.

Do I need to run a Chariot MQTT server to obtain a certificate?

No. Chariot is one broker product; any MQTT broker that signs or carries a proper server certificate has a matching CA certificate you can install. When connecting through an Ignition MQTT module, the server type field is a selector that must name the broker product you actually run. It changes how the module formats messages, not where the CA certificate comes from.

Does an unactivated Ignition trial cause the certificate error?

No. Certificate loading and TLS validation happen in the MQTT client and fail independently of licensing. An unactivated Ignition can still present a valid ca.pem and complete a TLS handshake. Treat the certificate problem and the activation question as two separate tasks: install the broker's CA certificate first, then resolve the license on its own.

Can I use the broker's server certificate itself as ca.pem?

Only when the broker uses a self-signed certificate with no separate certificate authority above it. In that case the server certificate is its own trust anchor and works as ca.pem. When the broker's certificate is signed by a CA, ca.pem must be the CA certificate, not the server certificate, or the EPIC will reject the chain during the TLS handshake.

Keep reading

  • Troubleshooting

    Fixing X.509 certificate auth to Azure IoT Hub over MQTT

    The controller fails because the selected .key file is only half an X.509 credential: TLS client authentication must present the device certificate and its chain, so the key passes file validation and the handshake still has nothing to send. Convert the test certificates to PEM, import the leaf-plus-chain with its matching key as one pair, make the hub's device ID or thumbprint match, and verify with a real MQTT connection.

    Edge computing and IIoT

  • Troubleshooting

    MQTT connect fails after power loss when the CA certificate is missing

    After a power failure, a gateway whose MQTT connect fails while VPN, PLC traffic and open ports all still work may be missing its runtime files: in one reported case the CA.crt certificate and the BASIC script were gone from the usr folder, and restoring them fixed publishing when a firmware upgrade did not. Check the files and the certificate's expiry date before touching the network or firmware.

    Edge computing and IIoT

  • Explainer

    Why an MQTT service cannot export attached serial device data

    Yes — the built-in MQTT client on a groov RIO publishes only the unit's own I/O data. It cannot set an attached serial device's baud rate or parity, poll its Modbus RTU registers, or derive a device state. Read the device in Node-RED and publish through an MQTT out node, with any derived state on its own topic.

    Edge computing and IIoT

Where point history goes when an edge historian is set to MySQL