peterldowns / localias

custom local domain aliases for local dev servers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Certificate validity length

taylorthurlow opened this issue · comments

I find that I often have to localias stop and localias start to trigger a renewal of my certificates. Is there an intended auto-refresh mechanism that isn't working, or is this just a feature request?

Thanks for the bug report. This is probably a bug with how I'm running Caddy to generate the certificates. It's not expected that you'd have to explicitly restart the daemon in order to refresh the certs, that's really annoying — sorry!


Right now it looks like the cert generated for each site is valid for 12 hours:

image

The intermediate cert used by each site is valid for one week:

image

And the root cert is valid for 10 years:

image

There's no reason the certs should only be valid for such a short period of time. I'll figure out how to make Caddy either auto-refresh these certs AND/OR provision them to be valid for much longer.

@taylorthurlow should be resolved, I published the latest version to brew so if you update everything should work. Please re-open this issue if you’re still having the same trouble. Thanks again for the bug report!