Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Old SSL Certificate(s) after new one is successfully applied #72

Open
bateller opened this issue Jul 20, 2016 · 2 comments
Open

Comments

@bateller
Copy link

bateller commented Jul 20, 2016

After awhile you'll have a bunch of old certificates in your list. No reason this shouldn't' be tidied up automatically.

It should delete the prior installed certificate right after the new certificate is successfully applied to the ELB.

This can be done with AWS CLI:
http://docs.aws.amazon.com/cli/latest/reference/iam/delete-server-certificate.html

Eg.

aws iam delete-server-certificate --server-certificate-name "32192372168017-2016-10-18-www_mydomain_com-mydomain_com"

@alex
Copy link
Owner

alex commented Jul 21, 2016

Hmmm, so this is a challenge, we want to leave recent old certs so people can roll back if necessary. I think the best thing would be a "prune-old-certs" command?

@bateller
Copy link
Author

bateller commented May 1, 2017

@alex That makes sense. Or keep a rolling # of old certificates (delete if >3 for example).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants