SSH and IoT devices #2004
-
Hi, I'm experimenting with step-ca at home. I have a server and a few boards with a custom linux distro running on them. I was trying to give some extra context with the specific use case, but the question is really how to set up host verification for IoT devices that don't belong to a specific domain? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hey @tsoos99dev, It sounds like in this case your Linux boards would be SSH clients, and the natural thing would be to issue an SSH user certificate to them. We have several provisioners that support doing that. Here's an overview of the provisioners per certificate type: https://smallstep.com/docs/step-ca/provisioners/#authorization-scope-by-provisioner. Some options:
One other nice property of having the X509 certificate is that you could use that as an identity certificate for other use cases too. You mention that the boards have access to an MQTT broker. I presume that is also authenticated in some manner. With the identity certificate in place you could use mTLS to authenticate to the MQTT broker 🙂 |
Beta Was this translation helpful? Give feedback.
I think that should work with
localhost
and192.168.1.10
set, yes, but I don't remember doing a similar setup. In terms of security I don't see an immediate issue, as long as the SSH host can only be authenticated to using certificates, and the client checks the SSH host cert to be from the expected SSH CA.Given that the board is actually an SSH host (and a client, it seems?), you could also have a look at the
SSHPOP
provisioner, which allows renewing (just) SSH host certificates by authenticating to it with a proof of the private key.