Preview: this product has not been released yet. The description may change before release.
Skip to main content

Peers turned away

A peer — a Base Station over BSSCI, an Application Center over SCACI — has to prove who it is before it gets in. Where it cannot, it is turned away, and that is the ordinary business of a system anyone may knock at: a refusal is not a fault, it is the door doing its work.

What was a fault: that nobody found out why. A peer's state said "not connected", and whether a certificate had expired or a pin no longer matched lived only in the log of whichever replica happened to take the call — once, in the second it happened.

So the last reason now stands on the peer itself and stays there as long as it holds. It is a state, not a message you can have missed.

Where the reason is shown​

  • Base Station — at the top of its detail page, as a red box above the master data. In the list only the state mark changes: "Rejected" instead of "Disconnected".
  • Application Center — in the list as a state mark too; the whole reason opens on a click on the row.

The box disappears the moment the peer gets in again. A reason does not outlive its cause.

An ordinary disconnect gets no red box. A station somebody switched off is not a call-out, and a box that stands on every offline station is a box nobody reads by the second week. When the connection last ended is shown instead as a line under "Connection".

The six reasons​

The small, untranslated text under the sentence is the runtime's own wording — a chain status, a socket error, a comparison of two identifiers. It is not translated because it is what you quote into a ticket.

The certificate does not match the stored chain of trust​

"The peer presents a certificate that does not match the stored chain of trust."

The most important sentence on this page, because it is the only one that does not tell you about a network problem. It stands for two checks that call for the same thing:

  • The presented certificate's chain ends at no authority this installation trusts.
  • The public key presented is not the one pinned for this peer.

In both cases the check worked. There are two readings, and they are not equivalent: either the peer is not the one it claims to be — in which case the refusal is exactly what the pin is for — or the peer was legitimately reinstalled and needs a new identity. The screen cannot tell them apart; it sees the same thing in both cases. That is why there is no button here that resets anything.

The handgrip for the second case is under Enrollments: the peer enrols again with its factory identity, and the enrolment is approved here. The check to make first: if an open enrolment for this peer is already waiting under Enrollments, nothing is broken — only the approval is missing.

The certificate has expired​

"The peer's certificate has expired, or is not valid yet."

Its own reason and not "chain of trust", although an expired certificate also fails chain building. The difference is the repair: here the identity is the right one and only needs renewing. Reading this as a chain problem and deleting the identity destroys a working device over an errand that was a renewal.

"Not valid yet" almost always comes from a clock set wrongly — at the peer or here.

The certificate has been withdrawn​

"The peer's certificate has been withdrawn by the certificate authority."

Somebody declared this certificate invalid. That is a decision, not a defect; where it was made by mistake, the way back is a fresh enrolment and not an undoing of the withdrawal.

The peer is not registered here​

"The certificate presented belongs to no peer registered here."

Either this installation does not know the certificate at all, or it knows it and it hangs on no station and no Application Center. Both call for the same thing: the peer has to be let in through Enrollments.

Where this reason stands on a station that was working before, something is announcing itself there with a different certificate than the registered one — a device that was swapped, or one that was given the wrong identity.

The certificate names a different identity​

"The certificate names a different device identity than the registration — or none at all."

Every device certificate carries its EUI as a subject alternative name (urn:eui64:…). Where it is missing, or names an EUI other than the registration's, the peer does not get in — not even when the certificate is otherwise sound. That is deliberate: otherwise a device holding a valid certificate could speak under another device's identity.

In practice this nearly always means a certificate was issued with the wrong profile or for the wrong EUI.

The handshake did not complete​

"The handshake with the peer did not complete."

Everything else — no certificate presented, an aborted handshake, a protocol incompatibility. Here the untranslated text underneath carries the whole answer, because for this case there is no category to be had.

When a certificate dies while the connection stands​

Everything above is checked during the handshake — in the second a peer gets in. But a BSSCI or SCACI connection is opened once and then held for weeks, and in those weeks a certificate can expire or be withdrawn. The Service Center does not wait for the next handshake then; it ends the standing connection.

The reason left on the peer afterwards is the same one the door uses — "The peer's certificate has expired, or is not valid yet." or "The peer's certificate has been withdrawn by the certificate authority." A peer that disappeared for one of those reasons therefore looks exactly like one that never got in for it, and that is deliberate: the repair is the same in both cases.

Expiry has no delay. When a certificate expires is written in the certificate and has been known since the handshake. The Service Center remembers it per connection and ends the connection at exactly that instant — not at the next opportunity after it.

Withdrawal has a window, and its size is known. A withdrawal is published by the certificate authority as a revocation list, and every replica re-reads those lists on a fixed beat. Between the withdrawal and the next refresh a standing connection may therefore still stand — and a withdrawn peer may still get in once more in the same span. The beat lives in the installation's configuration under ServiceCenter:Pki:RevocationCheck as RefreshInterval and is set to one minute. It is not a performance setting; it is that span.

That the window exists is a decision, not an oversight. Published revocation lists are the reason a customer's own certificate authority can take the place of the Noritec PKI; a notification channel from the authority to this product would close the window and would be something a foreign authority does not speak. So that the beat may nevertheless be short, the fetch asks conditionally: where nothing has changed, the authority answers with a bare confirmation instead of the whole list.

Renewing an identity does not end the connection. When a device renews, it receives a new certificate and its registration points at that one from then on — the predecessor is deliberately not withdrawn. The standing connection is therefore presenting a certificate the registration no longer names, and it stays up regardless. What is checked is only the certificate this connection came in with, against its own expiry and against the revocation lists — never against the registration. Otherwise every connection would fall the moment its device renewed, which is the one thing renewing exists to avoid.

A connection ended this way appears in the history as Disconnected — it did get in — and carries there the reason it was ended.

In a healthy installation this never fires for expiry, and that is what it is for. A device is expected to renew its identity by itself, well before its certificate runs out, and to do so while it is running rather than only when it next starts — a Base Station stays up for months, so a check that only happens at start-up is a check that a long-lived station never reaches. The expectation in full, and it is what our own Base Station simulator demonstrates for anyone building firmware:

  • Look at the clock periodically. In the ordinary case that is a comparison and nothing else; only when the moment has come does any traffic happen at all.
  • Renew over simplereenroll, with a fresh key, authenticated with the certificate being replaced. Renewing over the same key would keep a key that leaked once useful for as long as anybody kept renewing it.
  • Take the renewal lead from the certificate's own life rather than from a fixed number of days. Over EST an applicant cannot ask for a validity — the authority's profile decides it — so a lead longer than the certificate lives would mean "always due", which is a loop and not a lead.
  • Then rebuild the connection. A standing TLS session carries the identity it came up with, and a new certificate takes effect at the next handshake. Waiting for the connection to break on its own means waiting for this watch, which is the outage the renewal exists to prevent.

A device that does none of this is not refused anything; it simply runs until its certificate expires, and then this watch is what ends it.

Which replica turned it away​

Where the system runs in several replicas, one of them decides a refusal, and only its log says anything about it. So the box names the replica. Anyone reading the event up in the log opens that one — the others say nothing about it, and that is not a fault.

The history​

Every refusal is kept in the connection history as an event of its own, beside Connected and Disconnected. It carries the identity the certificate named — no more can be said about a peer that could not prove who it is — together with the subject and thumbprint of the certificate presented.

A refusal is not a disconnect and is not counted as one: it neither appears in the number of standing connections nor is it ever "closed" after the fact. What never got in cannot have gone out.