mirror of
https://github.com/fergalmoran/DnsServer.git
synced 2026-02-05 23:44:00 +00:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user