WebService: removed certificate verification to allow use of self signed certificates.

This commit is contained in:
Shreyas Zare
2021-01-23 16:31:00 +05:30
parent 056e2fdd89
commit 4e930adea2

View File

@@ -5174,9 +5174,6 @@ namespace DnsServerCore
X509Certificate2 certificate = new X509Certificate2(tlsCertificatePath, tlsCertificatePassword);
if (!certificate.Verify())
throw new ArgumentException("Web Service TLS certificate is invalid.");
_webServiceTlsCertificate = certificate;
_webServiceTlsCertificateLastModifiedOn = fileInfo.LastWriteTimeUtc;
@@ -5195,9 +5192,6 @@ namespace DnsServerCore
X509Certificate2 certificate = new X509Certificate2(tlsCertificatePath, tlsCertificatePassword);
if (!certificate.Verify())
throw new ArgumentException("DNS Server TLS certificate is invalid.");
_dnsServer.Certificate = certificate;
_dnsTlsCertificateLastModifiedOn = fileInfo.LastWriteTimeUtc;