Skip to content

Certificates remain in terraform-aws-openvpn s3 backup after running openvpn-admin revoke #128

Answered by zackproser
zackproser asked this question in Help
Discussion options

You must be logged in to vote

Revoking the certificate from the openvpn server does not also remove it from the s3 backup.

When a cert is revoked, the backup should contain both the previously issued cert, and the CRL (certificate revoke list) indicating that cert is revoked.

When the server is replaced, the certs should get loaded along with the CRL.

The CRL gets stored in the openvpn directory, which is backed up by https://github.com/gruntwork-io/terraform-aws-openvpn/blob/master/modules/backup-openvpn-pki/bin/backup-openvpn-pki#L43, and loaded by init-openvpn here: https://github.com/gruntwork-io/terraform-aws-openvpn/blob/master/modules/init-openvpn/bin/init-openvpn#L96 (note that the CRL is stored as crl.pem)

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by zackproser
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
1 participant