Skip to content

How to properly set a predefined token with CA hash on server initialization? #10788

Answered by brandond
bglgwyng asked this question in Q&A
Discussion options

You must be logged in to vote

You'd need to start K3s using custom certificates as documented at https://docs.k3s.io/cli/certificate#using-custom-ca-certificates, so that the CA hash is known. If you are using the CA certificates generated by K3s, there is no way to know what the CA hash will be until K3s is started the first time and the certificate is generated.

If you don't want to generate custom certificates, then just specify the passphrase when starting the server. If you care, you can update the token to include the CA hash later, after it's started up the first time.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@bglgwyng
Comment options

Answer selected by bglgwyng
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #10783 on August 30, 2024 22:16.