DnsWebService: removed warning log for common name mismatch in LoadTlsCertificate() since this will create confusion when using cert with Subject Alternate Names extension.

This commit is contained in:
Shreyas Zare
2019-03-09 16:00:50 +05:30
parent 792100520e
commit 9aa347ed08

View File

@@ -3469,11 +3469,6 @@ namespace DnsServerCore
if (!certificate.Verify())
throw new ArgumentException("Tls certificate is invalid.");
string commonName = certificate.GetNameInfo(X509NameType.DnsName, false);
if (!Zone.DomainEquals(_dnsServer.ServerDomain, commonName))
_log.Write("WARNING! DNS Server domain name does not match with TLS certificate common name: " + commonName);
_dnsServer.Certificate = certificate;
_tlsCertificateLastModifiedOn = fileInfo.LastWriteTimeUtc;