1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-26 22:56:23 -04:00

New: Support PEM format for SSL certificates

Closes #8087
This commit is contained in:
Mark McDowall
2025-09-27 15:42:38 -07:00
parent 0407564784
commit a4a18d6121
10 changed files with 102 additions and 31 deletions
@@ -63,6 +63,12 @@ namespace Sonarr.Api.V3.Config
.IsValidCertificate()
.When(c => c.EnableSsl);
SharedValidator.RuleFor(c => c.SslKeyPath)
.NotEmpty()
.IsValidPath()
.SetValidator(fileExistsValidator)
.When(c => c.SslKeyPath.IsNotNullOrWhiteSpace());
SharedValidator.RuleFor(c => c.LogSizeLimit).InclusiveBetween(1, 10);
SharedValidator.RuleFor(c => c.Branch).NotEmpty().WithMessage("Branch name is required, 'main' is the default");