Skip to content

Commit d7dd734

Browse files
committed
Changes from review
1 parent fe8daaf commit d7dd734

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/ServiceControl.Audit.Persistence.RavenDB/ServerConfiguration.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ public ServerConfiguration(string dbPath, string serverUrl, string logPath, stri
2020
}
2121

2222
public string ConnectionString { get; }
23-
public string ClientCertificatePath { get; internal set; }
24-
public string ClientCertificateBase64 { get; internal set; }
25-
public string ClientCertificatePassword { get; internal set; }
23+
public string ClientCertificatePath { get; set; }
24+
public string ClientCertificateBase64 { get; set; }
25+
public string ClientCertificatePassword { get; set; }
2626
public bool UseEmbeddedServer { get; }
2727
public string DbPath { get; internal set; } //Setter for ATT only
2828
public string ServerUrl { get; }

src/ServiceControl.RavenDB/RavenClientCertificate.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ public static class RavenClientCertificate
2525

2626
if (certInfo.ClientCertificatePath is not null)
2727
{
28+
if (!File.Exists(certInfo.ClientCertificatePath))
29+
{
30+
throw new Exception("Could not read the RavenDB client certificate from the supplied path because no file was found.");
31+
}
2832
return new X509Certificate2(certInfo.ClientCertificatePath, certInfo.ClientCertificatePassword);
2933
}
3034

0 commit comments

Comments
 (0)