Skip to content

Enroll with a token

A device proves that it may have a certificate with a challenge password. For BastionXP CA that is a one-time token, made like any other:

bxp token --profile tls-device --name device1.example.com --valid-for 1h

Put the token into the device's SCEP settings as the challenge. As always, it works for one certificate, only for the names in it, and only until it expires, so every device needs its own.

  • --profile tls-device is the usual choice for a device that identifies itself: 30 days, renewed over SCEP. tls-client and tls-server work too, with their 24 hours, and so do your own profiles.
  • Give the token enough --valid-for for the device to enroll (up to 24 hours).
  • The device's CSR may ask only for names in the token.

Try it

bxp scep enroll --token <token> --name device1.example.com
scepclient -server-url https://ca.example.com:8443/scep \
    -challenge <token> -cn device1.example.com -dnsname device1.example.com \
    -private-key device.key -certificate device.pem \
    -key-encipherment-selector

Certificates from token enrollments are logged and counted with the verifier scep.