peterldowns / localias

custom local domain aliases for local dev servers
MIT License
605 stars 3 forks source link

Certificate validity length #27

Closed taylorthurlow closed 7 months ago

taylorthurlow commented 7 months ago

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?

peterldowns commented 7 months ago

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.

peterldowns commented 7 months ago

@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!