Make X509CertificatePassword optional (#732)

This commit is contained in:
Stef Heyenrath
2022-03-01 19:46:33 +01:00
committed by GitHub
parent 6c68033739
commit a9e8e01877
3 changed files with 10 additions and 5 deletions

View File

@@ -80,7 +80,7 @@ namespace WireMock.Owin
/// <inheritdoc cref="IWireMockMiddlewareOptions.CustomCertificateDefined"/>
public bool CustomCertificateDefined =>
!string.IsNullOrEmpty(X509StoreName) && !string.IsNullOrEmpty(X509StoreLocation) ||
!string.IsNullOrEmpty(X509CertificateFilePath) && !string.IsNullOrEmpty(X509CertificatePassword);
!string.IsNullOrEmpty(X509CertificateFilePath);
/// <inheritdoc cref="IWireMockMiddlewareOptions.SaveUnmatchedRequests"/>
public bool? SaveUnmatchedRequests { get; set; }