mirror of
				https://github.com/zoriya/Kyoo.git
				synced 2025-10-30 18:22:41 -04:00 
			
		
		
		
	Fixing old certification renewall
This commit is contained in:
		
							parent
							
								
									52b6aa878d
								
							
						
					
					
						commit
						bcccce72d1
					
				| @ -34,6 +34,8 @@ namespace Kyoo.Controllers | ||||
| 			if (certificate.NotAfter.AddDays(7) <= DateTime.UtcNow) | ||||
| 			{ | ||||
| 				Console.WriteLine("Signin certificate will expire soon, renewing it."); | ||||
| 				if (File.Exists(OldCertificateFile)) | ||||
| 					File.Delete(OldCertificateFile); | ||||
| 				File.Move(CertificateFile, OldCertificateFile); | ||||
| 				builder.AddValidationKey(GenerateCertificate(CertificateFile, configuration.GetValue<string>("certificatePassword"))); | ||||
| 			} | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user