Add just command to refresh cert

This commit is contained in:
Grant Hunter
2026-02-08 15:18:39 -07:00
parent 7e2b64973b
commit 3732265498

View File

@@ -45,7 +45,7 @@ refresh-client-cert:
yq -r .machine.ca.key controlplane.yaml | base64 -d > ca.key yq -r .machine.ca.key controlplane.yaml | base64 -d > ca.key
talosctl gen key --name admin talosctl gen key --name admin
talosctl gen csr --key admin.key --ip 127.0.0.1 talosctl gen csr --key admin.key --ip 127.0.0.1
talosctl gen crt --ca ca --csr admin.csr --name admin talosctl gen crt --ca ca --csr admin.csr --name admin --hours 8760
yq -i '.contexts.fog.ca = "'"$(base64 -w0 ca.crt)"\ yq -i '.contexts.fog.ca = "'"$(base64 -w0 ca.crt)"\
'" | .contexts.fog.crt = "'"$(base64 -w0 admin.crt)"\ '" | .contexts.fog.crt = "'"$(base64 -w0 admin.crt)"\
'" | .contexts.fog.key = "'"$(base64 -w0 admin.key)"'"' \ '" | .contexts.fog.key = "'"$(base64 -w0 admin.key)"'"' \