Skip to content

Commit

Permalink
Changes from review
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidBoike committed Jan 31, 2025
1 parent fe8daaf commit d7dd734
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ public ServerConfiguration(string dbPath, string serverUrl, string logPath, stri
}

public string ConnectionString { get; }
public string ClientCertificatePath { get; internal set; }
public string ClientCertificateBase64 { get; internal set; }
public string ClientCertificatePassword { get; internal set; }
public string ClientCertificatePath { get; set; }
public string ClientCertificateBase64 { get; set; }
public string ClientCertificatePassword { get; set; }
public bool UseEmbeddedServer { get; }
public string DbPath { get; internal set; } //Setter for ATT only
public string ServerUrl { get; }
Expand Down
4 changes: 4 additions & 0 deletions src/ServiceControl.RavenDB/RavenClientCertificate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ public static class RavenClientCertificate

if (certInfo.ClientCertificatePath is not null)
{
if (!File.Exists(certInfo.ClientCertificatePath))
{
throw new Exception("Could not read the RavenDB client certificate from the supplied path because no file was found.");
}
return new X509Certificate2(certInfo.ClientCertificatePath, certInfo.ClientCertificatePassword);
}

Expand Down

0 comments on commit d7dd734

Please sign in to comment.