Abstract
A certificate authority for SSH normally runs as software on a networked host, with its signing key in a file, an HSM, or a
hardware token. In that arrangement the host decides what to sign, so an attacker who controls the host, or a stolen
provisioner credential, can obtain a signature over any certificate the host chooses to request. This disclosure describes an
arrangement in which the certificate-authority host is never trusted. It is a relay that carries fixed-size frames between
clients and an isolated hardware guard. The guard alone authorizes and signs. The relay holds no operation that returns a
signature over bytes the relay chose.
The guard is reached over two optical fibers, one for each direction, so that it shares no electrical connection, power
supply, or network stack with the relay. A hardware filter, in the main embodiment an FPGA, admits only frames of one
fixed length with a fixed marker, version and an opcode drawn from a set of three: HELLO, ISSUE_USER and
RENEW_HOST. A small bare-metal processor behind the filter verifies a fresh SSH signature (SSHSIG) made by an
enrolled end-user key over a nonce and timestamp that the guard produced, and then builds the SSH certificate itself:
principals, validity, key identifier and extensions come from an enrolment record stored in the guard, and none of them
come from the request. RENEW_HOST re-signs only the same host key with the same principals. No opcode signs a
supplied digest, enrols a key, sets the clock, reads the log, or updates firmware.
Enrolment of a user or host key requires a physical button press on the guard together with a quorum of M of N
administrator keys that sign the enrolment bundle, with button-only and quorum-only variants. The guard keeps time with
its own GNSS receiver and holdover oscillator, which cannot be set over the link, and accepts a request only inside a short
window after the nonce it issued, so replay memory stays small. Every result carries a detached signature by a separate
device attestation key, and clients that check that signature against a pinned attestation key can detect a replaced guard. An
unmodified sshd never sees that signature and accepts any certificate the CA key signed, so in the main embodiment login
itself does not detect a substitute; relying hosts can detect one only in a variant that carries the attestation in a certificate
extension, and only if they run a verifying hook. The CA key is generated in a secure element and sealed to the guard’s
firmware measurement. An append-only hash-chain log is audited out of band. The guard fails closed if the clock or the
sealed key is lost. Optional hardening includes resin potting, a tamper mesh and zeroization, and, for the secret store,
power from a stored-energy bank that is never connected to the external supply while the store runs, with data lines that are
connected only during a request window. The same split between an untrusted relay and a trusted signer that signs only
under its own policy is described for X.509 issuance, code and firmware signing, token signing, DNSSEC, and git and
container signing; in some of these the guard builds the signed object, and in others it checks content supplied by the relay.
Creative Commons License

This work is licensed under a Creative Commons Attribution-Share Alike 4.0 License.
Recommended Citation
Boll, Joe, "Optically Isolated Signing Guard Behind an Untrusted Certificate-Authority Relay: Fixed-Frame Link, Policy-Built SSH Certificates, Quorum Enrolment, Local Time, and Device-Signed Results", Technical Disclosure Commons, ()
https://www.tdcommons.org/dpubs_series/13496