Make the .notified file a hidden file

Since it's an implementation detail that users shouldn't need
to know about.
This commit is contained in:
Andrew Ayer 2023-02-03 14:29:58 -05:00
parent 5e7fa8c079
commit 6848316a5b
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ func processCertificate(ctx context.Context, config *Config, entry *logEntry, ce
return fmt.Errorf("error creating directory in which to save certificate %x: %w", cert.LeafSHA256, err) return fmt.Errorf("error creating directory in which to save certificate %x: %w", cert.LeafSHA256, err)
} }
notifiedPath = filepath.Join(prefixPath, hexFingerprint+".notified") // TODO-3: maybe this should be a hidden file? notifiedPath = filepath.Join(prefixPath, "."+hexFingerprint+".notified")
cert.CertPath = filepath.Join(prefixPath, hexFingerprint+".pem") cert.CertPath = filepath.Join(prefixPath, hexFingerprint+".pem")
cert.JSONPath = filepath.Join(prefixPath, hexFingerprint+".json") // TODO-3: consider using .v1.json extension in case I change the format later? cert.JSONPath = filepath.Join(prefixPath, hexFingerprint+".json") // TODO-3: consider using .v1.json extension in case I change the format later?
cert.TextPath = filepath.Join(prefixPath, hexFingerprint+".txt") cert.TextPath = filepath.Join(prefixPath, hexFingerprint+".txt")