• Matthew Holt's avatar
    tls: Remove expiring certificates from cache and load renewed ones · 46ae4a66
    Matthew Holt authored
    Renewed certificates would not be reloaded into the cache because their
    names conflict with names of certificates already in the cache; this
    was intentional when loading new certs to avoid confusion, but is
    problematic when renewing, since the old certificate doesn't get
    evicted from the cache. (Oops.)
    
    Here, I remedy this situation by explicitly deleting the old cert from
    the cache before adding the renewed one back in.
    46ae4a66
certificates.go 8.41 KB