Created
December 29, 2018 06:17
-
-
Save cxhercules/6e629a6d68bfebf3815a829334d50959 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openssl x509 -in /etc/kubernetes/pki/ca.crt -noout -pubkey | openssl rsa -pubin -outform DER 2>/dev/null | sha256sum | cut -d' ' -f1 | |
Reference: | |
https://github.com/kubernetes/kubeadm/issues/659#issuecomment-392822587 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Above will get the sha256sum for public cert used in kubeadm join command if you ever forget it and have an active token you want to use.
Goes with following argument:
--discovery-token-ca-cert-hash