NOTE: If you create a new enrollment token you will need to re-run config on all clients. Make sure you CANNOT find your original token before proceeding.


The following will guide you through the process of generating a new host enrollment token.

  1. Using the step cli generate a new key pair.
$ step crypto keypair pub.key priv.key
  1. Sign a token with the private key (this is your new enrollment token)
$ echo '{"kubernetes.io/serviceaccount/service-account.name":"smallstep", "iss":"kubernetes/serviceaccount", "sub":"smallstep"}' | step crypto jws sign --key priv.key
  1. SAVE THE TOKEN IN A SAFE PLACE!!!!!!!

  2. Print the public key:

    $ cat pub.key
    

  3. Open a support ticket, and send us the key: we'll update the back end so you can start enrolling new hosts.

  4. Once updated the things you will need to re-run config on all clients

$ step ssh config --team <your_team> --force


Make sure you put a copy of your new token in a safe place