mirror of
				https://github.com/SSLMate/certspotter.git
				synced 2025-07-03 10:47:17 +02: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:
		
							parent
							
								
									6848316a5b
								
							
						
					
					
						commit
						a5a9008de2
					
				@ -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 {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user