Last active
March 4, 2020 10:37
-
-
Save sunfmin/66f52d29977e52a77e55e73bb0660ebf to your computer and use it in GitHub Desktop.
This file contains 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
VAULT_ADDR=https://vault.theplant.dev vault login -method=oidc role=staff | |
VAULT_ADDR=https://vault.theplant.dev vault write -field=signed_key ssh-client-signer/sign/dev public_key=@$HOME/.ssh/id_rsa.pub > ~/.ssh/id_rsa-cert.pub -<< EOH | |
{ | |
"valid_principals": "ubuntu,dev" | |
} | |
EOH | |
ssh-keygen -Lf ~/.ssh/id_rsa-cert.pub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment