869 B
869 B
ansible-role-ssh-ca
Ansible role to deploy a basic SSH certificate authority.
It is implemented as a simple wrapper above ssh-keygen, which is deployed on a server. It supports issuing host certificates as well as user certificates.
Limitations
I currently only use this in my home lab, and it should not be used in more critical environments. Notable, it has the following limitations:
- No expiration date and no mechanism to issue new certificates
- No mechanism to revoke certificates
- No mechanism to roll over CA key pair
Usage
The following variables must be set before calling the role:
ssh_ca_dir
: Working directory for the certificate authorityssh_ca_key_pair
: List of CA key pairsname
: File name of the CA key pairpublic_key
: Public key contents on the key pairprivate_key
: Private key contents on the key pair