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

cull does not delete links in live #215

Open
Mrten opened this issue Nov 2, 2016 · 3 comments
Open

cull does not delete links in live #215

Mrten opened this issue Nov 2, 2016 · 3 comments

Comments

@Mrten
Copy link

Mrten commented Nov 2, 2016

I used to have a desired domein with 'michiel' in it. I don't anymore:

root@acme:/var/lib/acme# fgrep michiel * -R
root@acme:/var/lib/acme#

but acmetool cull does not delete the symlink in live:

root@acme:/var/lib/acme/live# ls -alsF *michiel*
0 lrwxrwxrwx 1 acme acme 61 Apr  1  2016 michiel.afvalonline.nl -> ../certs/qrkcr5fleuzp4hirthkc2rzjhypjdpgmcnxwy3bdfkpdmjdjoeda/

nor is it valid anymore:

root@acme:/var/lib/acme/live# openssl x509 -in ../certs/qrkcr5fleuzp4hirthkc2rzjhypjdpgmcnxwy3bdfkpdmjdjoeda/cert -text | fgrep -A 2 Validity
        Validity
            Not Before: Apr  1 19:41:00 2016 GMT
            Not After : Jun 30 19:41:00 2016 GMT

er, i now see this is 0.0.50, i'll try 0.0.58 later.

@Mrten
Copy link
Author

Mrten commented Nov 2, 2016

0.0.58 does not help.

@hlandau
Copy link
Owner

hlandau commented Nov 8, 2016

This is as (currently) designed. Certificates currently referenced by live/ are not culled by cull, even if they are expired, as they represent the best available certificate for that hostname. The idea is that if any webserver were referencing that certificate, it's probably better to serve an expired certificate than none at all, as with most webservers that will prevent the server starting at all.

Deleting the symlink and then running cull should be an effective workaround.

@Mrten
Copy link
Author

Mrten commented Dec 1, 2016

Understood! Change this into a feature request for acmetool cleanup then perhaps?

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