Tiza Group

Home / Guides / Testing, commissioning and faults

MMS Message the Relay Rejects for Security Reasons

Find the layer where a relay rejects an MMS message (TLS, certificate, authentication, permissions) and fix it securely. We configure it remotely.

By Shadai García, CEO and protection engineer at Tiza Group.

Short answer

When a relay rejects an MMS connection or command, the rejection happens in one of four layers: transport, TLS, application association or service permissions. The type of response the client receives tells you which. The most frequent causes are expired certificates or a device clock that is off, cipher suites with no match, and a user without the permission for the requested service.

Symptom

An MMS client (gateway, SCADA or engineering tool) cannot connect to the relay after security is enabled, or it connects and the relay rejects one service: a command, a settings write, enabling a report or downloading a file. The client message is usually vague (“connection refused”, “access denied”, “timeout”), and the operator does not know whether the problem is the network, the certificates or the permissions.

The rejection always happens in one of four layers, and each leaves a different trace. Recognizing the layer saves most of the work. What the standard protects and how the profiles are split is covered in the parent guide on MMS profile security; this guide deals with what to do when something does not get through.

The four layers where it is rejected

LayerTrace at the clientWhat it means
TransportThe connection closes or is not established; no alertWrong port, service not active on that port, firewall or connection limit
TLSTLS alert or close during the initial exchangeCertificate not valid or not trusted, no common suite, unsupported version
Application associationTLS is established but the relay rejects or aborts the MMS associationThe application authentication the relay requires is missing, or the identity is not authorized
ServiceAssociation open, but one specific service returns an access errorInsufficient role or permission, or the object is not accessible to that client

Likely causes, from most to least likely

  1. Clock offset. Certificate validity is checked against each device’s clock. A relay that has just started, or has no time source, can be outside the certificate window and then reject it even though it is valid. You recognize it because the rejection happens after a restart or after installing the certificate, and because it clears once the time is fixed.
  2. Expired or about-to-expire certificate. Common on devices that worked for years and suddenly fail. Confirm by reading the validity dates of the client and relay certificates.
  3. Untrusted issuing authority or incomplete chain. The relay needs the authority that issued the client certificate loaded, and the client needs the relay’s. If an intermediate is missing, the relay cannot complete the chain. You recognize it when the same certificate works with another device that does have the full chain.
  4. No common cipher suite or TLS version. An old client or a relay with a restricted list cannot agree, and the connection fails during negotiation. Confirm by capturing the initial exchange: there is no acceptance response.
  5. Wrong transport port. The secure transport profile uses a different port from the one used without protection. If the client still points to the old one, or the relay has the secure service disabled on that port, the connection is not established. Confirm by testing the connection to the expected port.
  6. Application authentication missing or not accepted. The relay requires an application certificate and the client connects without it, or with an identity the relay does not accept. The failure appears after TLS has already worked.
  7. User or role permissions. With role-based access control, a user may be able to read but not operate. You recognize it because reads and reports work and only the command or write fails. Role-based access control is covered by IEC 62351-8.
  8. Revocation or replaced device certificate. If the relay or the client was replaced and the address reused, the previous certificate no longer matches the identity. Confirm by comparing the certificate identity with the device name.
  9. Firewall with content inspection. A firewall that intervenes in the session or drops idle sessions can break a channel that used to work. You recognize it when the failure happens only through a particular path.

How to diagnose it

  1. Note the exact response the client receives and at which step: when opening the connection, negotiating TLS, opening the association or requesting the service. The four-layer table already rules out half of the causes.
  2. Check the relay security log. Many relays record the cause of the rejection (certificate, user, permission) with a timestamp. It is the cheapest and most useful piece of data.
  3. Verify the time at both ends against a reference and confirm their time source is active before touching certificates (time synchronization in substations).
  4. Read the certificate at each end: validity dates, issuing authority, identity (the name or address it contains) and permitted use. Compare the identity with the real device.
  5. Test the connection to the secure port from the same network point the client uses, not from your engineering laptop, which may be in another zone.
  6. Capture the traffic of the attempt and see which message it ends on: an immediate close, a TLS alert, an association rejection or a service error.
  7. If reads work and only a command fails, check the user role and the relay’s own command conditions before blaming security; a command can be refused for reasons that have nothing to do with cybersecurity (IED that does not communicate over MMS).

Illustrative example

A gateway and a relay worked for two years with certificates valid for that long. One day the gateway does not connect. The client receives a TLS alert on opening. The relay log reports a certificate outside its validity. Reading the gateway certificate shows it expired that week; comparing the time, the relay clock is fine. A new certificate with the same identity is issued and loaded, and the connection is restored. Had the relay clock been two years behind from losing its time source, the symptom would have been the same with a valid certificate. This is an illustrative example, not a customer case.

What to do

  • Time: fix the time source before changing anything else.
  • Expired certificate or incomplete chain: issue or renew the certificate through your certificate management process and load the full chain at both ends (X.509 certificate and CSR for IEDs).
  • Suites or version: align the suite list at both ends toward the strongest ones both support; do not lower the relay’s security to accommodate an old client, update the client.
  • Port: point the client to the secure port and confirm with the network administrator that the firewall allows it.
  • Application authentication or permissions: correct the identity or the user role with the minimum privilege the task needs.
  • Firewall: ask the network owner to review the rules and the session idle timeouts.

Field checklist

  • Rejection layer identified with the table above.
  • Relay security log read.
  • Relay and client time compared with a reference.
  • Validity dates of both certificates checked.
  • Issuing authority and intermediates present at both ends.
  • Certificate identity equal to the device identity.
  • Secure port tested from the client’s real network point.
  • User role checked if only the command fails.

What not to do

  • Do not disable security on a relay in service to see whether “that was it”: it leaves the relay exposed and hides the cause.
  • Do not reuse a certificate from another device as a shortcut; the identity stops being trustworthy.
  • Do not raise a user’s role to administrator to make a command work; adjust the specific permission.
  • Do not keep private keys in shared folders or in emails.
  • Do not modify the substation firewall without authorization from the network owner.
  • Do not operate an energized device by testing commands to see whether they “go through”; use the procedure and the operating permit.

When to call us

If the rejection persists after checking time, certificates and ports, or if you need to enable MMS security on several devices without interrupting operation, we review the certificates, the suites and the permissions with you, without going to site. We configure it remotely. Write to us.

References

  • IEC 62351-4, Power systems management and associated information exchange – Data and communications security – Part 4: Profiles including MMS and derivatives.
  • IEC 62351-8, Power systems management and associated information exchange – Data and communications security – Part 8: Role-based access control for power system management.
  • IEC 61850-8-1, mapping of specific communication service mapping (SCSM) to MMS.

Frequently asked questions

How do I know which layer the relay is rejecting the message in?

From the response the client receives. If the connection closes when it is opened, transport fails or a firewall blocks it. If a TLS alert appears, the certificate or the suite fails. If the association is rejected after TLS opens, application authentication fails. If the association opens and one specific service is refused, it is a permission.

Can I disable security to check whether it is the cause?

Only on an isolated test bench and with authorization. On a device in service, disabling it leaves the relay exposed and changes the behavior you are trying to diagnose. It is better to read the relay security log and compare the certificate, the suites and the permissions.

Why is a certificate that looks valid rejected?

Because the clock of the relay or of the client may be outside the validity window, because the authority that issued it is not in the other end's trust list, because the chain is incomplete or because the certificate was revoked. The date printed on the certificate is not enough: what counts is the time each device holds.

WhatsApp