mirror of
https://github.com/SSLMate/certspotter.git
synced 2025-12-18 12:54:18 +01:00
Add .v1 to file suffix of JSON files
If we add fields in the future this will make it clear that old files don't have the new fields
This commit is contained in:
@@ -113,7 +113,7 @@ func processCertificate(ctx context.Context, config *Config, entry *logEntry, ce
|
||||
|
||||
notifiedPath = filepath.Join(prefixPath, "."+hexFingerprint+".notified")
|
||||
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+".v1.json")
|
||||
cert.TextPath = filepath.Join(prefixPath, hexFingerprint+".txt")
|
||||
|
||||
if err := cert.save(); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user