Network and certificates

0x80072F06: The name in the server certificate does not match the server name

The client connected over HTTPS, but the certificate on the server is issued to a different name than the one the client used.

Hex code0x80072F06
Decimal-2147012858
NameERROR_WINHTTP_SECURE_CERT_CN_INVALID
Logs to readCcmMessaging.log, LocationServices.log, ccmsetup.log, smsts.log, WUAHandler.log, DataTransferService.log

What 0x80072F06 means

During the HTTPS handshake the client compares the server name it called with the names in the server certificate. This code means they do not match. The client refuses the connection.

In SCCM you see it in CcmMessaging.log, ccmsetup.log, WUAHandler.log and smsts.log. The server is a management point, distribution point or software update point that uses HTTPS.

Common causes

  • The web server certificate holds the short name, and clients call the full name, or the reverse.
  • The certificate does not list the internet FQDN that internet clients use.
  • The wrong certificate is bound to port 443 or 8531 in IIS.
  • The server was renamed or sits behind an alias that is not in the certificate.
  • A load balancer or proxy presents its own certificate with another name.

How to fix 0x80072F06

  1. Find the name the client used

    Open the log that shows the code. Read the address on the line above it. Copy the host name exactly. That is the name the certificate must contain.

  2. Read the names in the server certificate

    On the site system, open IIS Manager. Select the web site and open Bindings. Select the HTTPS binding and view the certificate. On the Details tab, read Subject and Subject Alternative Name. The name from the log must be listed.

  3. Issue a certificate with the right names

    Request a new web server certificate. Put every name clients use in the Subject Alternative Name as DNS entries. That means the intranet FQDN and, if used, the internet FQDN. Bind the new certificate in IIS.

  4. Match the site system settings

    In the console, open Administration, Site Configuration, Servers and Site System Roles. Open the site system properties. Check the FQDN for intranet use and the internet FQDN. They must match names in the certificate.

  5. Rerun WSUS SSL setup for a software update point

    If the server is WSUS on HTTPS, the name given to WsusUtil.exe configuressl must match the certificate. Run it again with the correct full name.

Commands that help

Show the names in the certificate a server presents · PowerShell
$tcp = New-Object Net.Sockets.TcpClient('mp.contoso.com', 443)
$ssl = New-Object Net.Security.SslStream($tcp.GetStream(), $false, { $true })
$ssl.AuthenticateAsClient('mp.contoso.com')
$cert = New-Object Security.Cryptography.X509Certificates.X509Certificate2($ssl.RemoteCertificate)
$cert.Subject
$cert.DnsNameList
$tcp.Close()
Got a different code?

Turn any hex or decimal error code into its meaning, or search every code on this site.

Error code lookup All SCCM error codes

✉

Get new articles in your inbox

SCCM guides, AI tools, automation tips — sent when published. No spam.