x/crypto/acme/autocert: Consider storing certificates as "*.pem" in DirCache #37354
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
I recently implemented autocert to generate certificates; it works quite well for me👍
I did run in to one snag: the
DirCache
implementation stores the generated certificates as just the domain name; e.g.test.example.com
, rather thantest.example.com.pem
.I also use the generated certificates with an external TLS proxy (hitch), and loading the certificates like this isn't possible since it will errors out on non-certificate files like
acme_account+key
, which strikes me as reasonable behaviour on hitch's part.If they would be stored as
*.pem
I could tell hitch to load only those files, which works.I worked around this by wrapping the
DirCache
as below, but I think it might be reasonable to change the behaviour ofDirCache
to always do this?The text was updated successfully, but these errors were encountered: