# read for role-id$vaultreadauth/approle/role/devops/role-idKeyValue--------role_id1*******-****-****-****-***********5$vaultwrite-fauth/approle/role/srv-ssd-fw-devops/secret-idKeyValue--------secret_id3*******-****-****-****-***********3secret_id_accessor9*******-****-****-****-***********bsecret_id_ttl0# list for secret_id$vaultlistauth/approle/role/devops/secret-idKeys-----9*******-****-****-****-***********b
$vaultwritedevops-ssh/config/cagenerate_signing_key=true# or with private/public key pairs$vaultwritedevops-ssh/config/ca \private_key="..." \public_key="..."
add CA to all servers
# download pem$curl-o/etc/ssh/trusted-user-ca-keys.pemhttp://vault.sample.com:8200/v1/ssh-client-signer/public_key# or$vaultread-field=public_keydevops-ssh/config/ca>/etc/ssh/trusted-user-ca-keys.pem# modify sshd_config to `TrustedUserCAKeys`$sudovim/etc/ssh/sshd_config...TrustedUserCAKeys/etc/ssh/trusted-user-ca-keys.pem# restart sshd$sudosystemctldaemon-reload$sudosystemctlrestartsshd.service
$vaultwritedevops-ssh-hosts/config/cagenerate_signing_key=trueKeyValue--------public_keyssh-rsaAAAAB3NzaC1yc2EA...# or with key pairs$vaultwritedevops-ssh-hosts/config/ca \private_key="..." \public_key="..."