mirror of
https://github.com/fergalmoran/DnsServer.git
synced 2026-01-05 08:15:54 +00:00
WebService: removed certificate verification to allow use of self signed certificates.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user