Secure Transport Tutorial
This tutorial walks through the normal operator lifecycle for secure transport:
first registration
fingerprint verification
automatic key provisioning
Web API TLS usage
recovery from a broken or replaced master/minion
First Bootstrap
Start sysmaster first.
Then start the minion once. If this is the first contact, the minion will not be registered yet and will print the master fingerprint.
Typical pattern:
ERROR: Minion is not registered
INFO: Master fingerprint: <fingerprint>
At this point:
do not trust the fingerprint blindly
verify it through your normal out-of-band process
Fingerprint Verification
After you have verified the fingerprint, register the minion:
sysminion --register <master-fingerprint>
If registration succeeds, the master accepts the minion RSA identity and both sides create managed transport metadata automatically.
What gets provisioned automatically:
the minion stores the trusted master public key
the master stores the minion public key
the minion creates
transport/master/state.jsonthe master creates
transport/minions/<minion-id>/state.json
Normal Startup After Registration
Once registration exists, start the minion normally:
sysminion --start
The normal sequence is:
the minion loads its managed transport state
the minion sends secure bootstrap to the master
the master validates identity, version, and replay rules
the connection switches to a secure session
traits, commands, events, and sync control traffic use that secure session
Verify it from the operator side:
sysinspect network --status
Look for:
a current handshake timestamp
an active key id
idle rotation state unless you intentionally staged rotation
Automatic Key Provisioning
You do not need to create transport session keys manually.
Sysinspect manages:
registration trust anchors
transport metadata
fresh per-connection secure sessions
staged and applied rotation state
If you rotate transport state:
sysinspect network --rotate --id <minion-id>
the reconnect and secure bootstrap after that rotation are still automatic.
Web API TLS Usage
The Web API is separate from the Master/Minion secure transport.
Configure it on the master:
config:
master:
api.enabled: true
api.tls.enabled: true
api.tls.cert-file: etc/web/api.crt
api.tls.key-file: etc/web/api.key
Then restart sysmaster and open:
https://<host>:4202/doc/
Normal API flow:
authenticate over HTTPS
receive a bearer token
send plain JSON requests over HTTPS with
Authorization: Bearer <token>
Broken Minion Recovery
If a minion loses trust data or is rebuilt:
start it once and inspect the failure
if needed, unregister the old relationship on the master
verify the current master fingerprint again
register the minion again
start it normally
verify secure handshake with
sysinspect network --status
Broken Master Or Replaced Master Recovery
If the master identity changes, the old trust relationship is no longer valid.
Recovery flow:
start the rebuilt master
verify its new fingerprint
re-register affected minions against the new master fingerprint
start the minions normally
verify transport status and, if desired, run a cluster sync
Quick Checklist
For healthy secure operation:
verify the master fingerprint during registration
avoid editing transport state files manually
use
network --statusto confirm handshakes and rotation statekeep Web API TLS configured separately from the Master/Minion transport