Skip to main content

Configuring Passpoint with Intune or another MDM

Windows can take a certificate-based (EAP-TLS) Passpoint profile straight from an MDM. On managed machines, that means you can put them on the Wi-DAS network without any app: your MDM pushes the client certificate and the Passpoint profile, and Windows connects by itself. The user doesn't see a prompt or have to do anything.

This is one of two ways to use an MDM with Wi-DAS. The other deploys your Wi-DAS-enabled app and lets the SDK do the work; see Deploying your app with Intune or another MDM.

What you push​

What it isWhere it goes
Client certificateA .pfx file holding the client certificate and its private key, and the file's passwordThe user's personal store (CurrentUser\My)
Issuing CA certificateThe Wi-DAS CA that signed the client certificate, as a .cerThe user's intermediate store (CurrentUser\CA)
Server root certificateThe root CA the Wi-DAS RADIUS servers' certificate chains toThe machine's root store, but only if it isn't trusted already
Passpoint profileA WLAN profile XML file, built from the template belowWindows' Wi-Fi profiles

Wi-DAS gives you the issuing CA and the server root certificates, along with your network's Passpoint settings.

The issuing CA lets the profile name the one certificate to use, so Windows never asks the user to pick one. The server root is normally a public CA that Windows already trusts, in which case you skip it.

Keep the .pfx and its password as safe as any other credential. Anyone who has both can join the network as that user until the certificate is revoked.

The Passpoint profile​

Copy this template and fill in the values from the table after it. It's the same profile the Windows SDK installs.

<?xml version="1.0"?>
<WLANProfile xmlns="http://www.microsoft.com/networking/WLAN/profile/v1">
<name>{friendlyName}</name>
<SSIDConfig>
<SSID>
<hex>{friendlyNameHex}</hex>
<name>{friendlyName}</name>
</SSID>
</SSIDConfig>
<Hotspot2>
<DomainName>{homeFqdn}</DomainName>
<NAIRealm>
<name>{realm}</name>
</NAIRealm>
<Network3GPP>
<PLMNID>{mcc}{mnc}</PLMNID>
</Network3GPP>
<RoamingConsortium>
<OUI>{rcoi}</OUI>
</RoamingConsortium>
</Hotspot2>
<connectionType>ESS</connectionType>
<connectionMode>auto</connectionMode>
<MSM>
<security>
<authEncryption>
<authentication>WPA2</authentication>
<encryption>AES</encryption>
<useOneX>true</useOneX>
</authEncryption>
<OneX xmlns="http://www.microsoft.com/networking/OneX/v1">
<authMode>user</authMode>
<EAPConfig>
<EapHostConfig xmlns="http://www.microsoft.com/provisioning/EapHostConfig">
<EapMethod>
<Type xmlns="http://www.microsoft.com/provisioning/EapCommon">13</Type>
<VendorId xmlns="http://www.microsoft.com/provisioning/EapCommon">0</VendorId>
<VendorType xmlns="http://www.microsoft.com/provisioning/EapCommon">0</VendorType>
<AuthorId xmlns="http://www.microsoft.com/provisioning/EapCommon">0</AuthorId>
</EapMethod>
<Config>
<Eap xmlns="http://www.microsoft.com/provisioning/BaseEapConnectionPropertiesV1">
<Type>13</Type>
<EapType xmlns="http://www.microsoft.com/provisioning/EapTlsConnectionPropertiesV1">
<CredentialsSource>
<CertificateStore>
<SimpleCertSelection>true</SimpleCertSelection>
</CertificateStore>
</CredentialsSource>
<ServerValidation>
<DisableUserPromptForServerValidation>true</DisableUserPromptForServerValidation>
<ServerNames>{homeFqdn}</ServerNames>
<TrustedRootCA>{serverRootThumbprint}</TrustedRootCA>
</ServerValidation>
<DifferentUsername>false</DifferentUsername>
<PerformServerValidation xmlns="http://www.microsoft.com/provisioning/EapTlsConnectionPropertiesV2">true</PerformServerValidation>
<AcceptServerName xmlns="http://www.microsoft.com/provisioning/EapTlsConnectionPropertiesV2">true</AcceptServerName>
<TLSExtensions xmlns="http://www.microsoft.com/provisioning/EapTlsConnectionPropertiesV2">
<FilteringInfo xmlns="http://www.microsoft.com/provisioning/EapTlsConnectionPropertiesV3">
<CAHashList Enabled="true">
<IssuerHash>{issuingCaThumbprint}</IssuerHash>
</CAHashList>
</FilteringInfo>
</TLSExtensions>
</EapType>
</Eap>
</Config>
</EapHostConfig>
</EAPConfig>
</OneX>
</security>
</MSM>
</WLANProfile>

Filling it in​

Wi-DAS gives you your network's Passpoint settings. They're the same values the Certificate API returns in its passpoint object.

PlaceholderValueNotes
{friendlyName}friendlyNameThe network name users see. Up to 32 bytes in UTF-8, because it doubles as the SSID name
{friendlyNameHex}friendlyName, hex-encodedThe UTF-8 bytes in uppercase hex. Acme WiDAS becomes 41636D65205769444153
{homeFqdn}homeFqdnUsed twice: as the home domain, and as the server name the RADIUS certificate must carry
{realm}realm
{mcc}{mnc}mcc then mnc, run together310 and 260 give 310260. Keep the MNC exactly as given: 15 and 015 are different networks. Leave out the whole Network3GPP element if you have no MCC and MNC
{rcoi}rcoiHex, such as 5A03BA0000. Leave out the whole RoamingConsortium element if you have none
{serverRootThumbprint}The server root certificate's SHA-1 thumbprint40 hex characters, no spaces
{issuingCaThumbprint}The issuing CA certificate's SHA-1 thumbprint40 hex characters, no spaces

If we give you more than one server root (for example, because the RADIUS servers' certificate is cross-signed), add a TrustedRootCA element for each one.

PowerShell gives you the hex name and the thumbprints:

# The friendly name as uppercase UTF-8 hex
-join ([Text.Encoding]::UTF8.GetBytes('Acme WiDAS') | ForEach-Object { $_.ToString('X2') })

# A certificate's SHA-1 thumbprint
(New-Object Security.Cryptography.X509Certificates.X509Certificate2 '.\issuing-ca.cer').Thumbprint

Don't copy a thumbprint out of the Windows certificate viewer. It shows the hex with spaces, and the profile needs it without.

What makes it hands-off​

Three settings in the template keep the user out of it, so leave them as they are:

  • DisableUserPromptForServerValidation is true. If the server fails validation, the connection fails and nobody is asked whether to trust it.
  • ServerNames and TrustedRootCA say exactly which server to accept, so Windows has nothing to ask about.
  • The CAHashList filter names the issuing CA, so Windows picks the Wi-DAS certificate on its own even when the user has other client certificates. It only works when the issuing CA is in the user's intermediate store, which is why you push it.

authMode is user, so the machine connects with the certificate in the signed-in user's store, once that user has signed in. The client certificate has to allow client authentication; Wi-DAS certificates do.

Configure it with Intune​

The issuing CA profile and the certificate script both work on the signed-in user, so assign them to the users who should connect. Assign the Wi-Fi profile to those users or to their devices. Roll out to a small pilot group first.

1. Trust the issuing CA​

  1. Go to Devices → Configuration → Create → New policy, choose Windows 10 and later, then Templates → Trusted certificate.
  2. Upload the issuing CA's .cer.
  3. Set Destination store to User certificate store - Intermediate.

If the server root isn't already trusted on your machines, add a second trusted certificate profile for it with Computer certificate store - Root.

2. Install the client certificate​

Use a platform script that runs as the signed-in user and imports the .pfx into their personal store.

# Imports the Wi-DAS client certificate into the signed-in user's personal store.
$pfxBase64 = '<the .pfx file, Base64-encoded>'
$password = ConvertTo-SecureString '<the .pfx password>' -AsPlainText -Force

$path = Join-Path $env:TEMP 'widas-client.pfx'
[IO.File]::WriteAllBytes($path, [Convert]::FromBase64String($pfxBase64))
try {
Import-PfxCertificate -FilePath $path -CertStoreLocation Cert:\CurrentUser\My -Password $password | Out-Null
}
finally {
Remove-Item $path -Force
}
  1. Go to Devices → Scripts and remediations → Platform scripts → Add → Windows 10 and later.
  2. Upload the script.
  3. Set Run this script using the logged on credentials to Yes.

Import-PfxCertificate marks the private key as non-exportable unless you ask otherwise, so the key can't be copied back off the machine. The script itself is another matter: it holds the certificate and its password in plain text, Intune keeps it in your tenant, and anyone who can read scripts there can take both. Limit who has that access. If you already use Intune's PKCS imported certificate profile (with Microsoft's certificate connector), deliver the .pfx that way instead, and the password never sits in a script.

3. Push the Passpoint profile​

  1. Go to Devices → Configuration → Create → New policy, choose Windows 8.1 and later, then Templates → Wi-Fi import.
  2. Set both Name and Connection name to exactly the profile's name (your friendlyName). If they differ, the profile fails.
  3. Upload your filled-in profile XML.

Configure it with another MDM​

Any MDM that can send Windows CSP commands can push the same four things. Each row is a node you add.

WhatCSP nodeValue
Issuing CA./User/Vendor/MSFT/RootCATrustedCertificates/CA/{issuingCaThumbprint}/EncodedCertificateThe .cer, Base64-encoded on one line
Server root, only if not already trusted./Device/Vendor/MSFT/RootCATrustedCertificates/Root/{serverRootThumbprint}/EncodedCertificateThe .cer, Base64-encoded on one line
Client certificate./User/Vendor/MSFT/ClientCertificateInstall/PFXCertInstall/{id}/...See below
Passpoint profile./Device/Vendor/MSFT/WiFi/Profile/{friendlyName}/WlanXmlYour filled-in profile XML

For the client certificate, choose any {id} (such as WiDas) and set, in this order:

Node under PFXCertInstall/{id}/Value
KeyLocation3, for the software key storage provider
PFXKeyExportablefalse
PFXCertPasswordThe .pfx password
PFXCertBlobThe .pfx file, Base64-encoded. Setting this one triggers the install, so send it last

For the profile:

  • The node name must be exactly the profile's name, with spaces written as %20 in the URI. If it doesn't match, Windows treats the profile as one the user added rather than one your MDM manages.
  • ./Device/... installs it for every user of the machine. Each user still connects with their own certificate. Use ./User/... to install it for the enrolled user only.
  • Escape the profile XML when you put it in the command, or wrap it in a CDATA section. If your friendlyName contains & or <, escape those inside the profile itself too.

Microsoft's WiFi CSP, ClientCertificateInstall CSP and RootCATrustedCertificates CSP pages have the full node reference.

Without an MDM profile​

If your management tool can run a script as the signed-in user but can't send CSP commands, such as a Group Policy logon script, one script can do the whole job:

# Run as the signed-in user, alongside the issuing CA (.cer), the client certificate (.pfx)
# and the filled-in profile (.xml).
$password = ConvertTo-SecureString '<the .pfx password>' -AsPlainText -Force

Import-Certificate -FilePath .\issuing-ca.cer -CertStoreLocation Cert:\CurrentUser\CA | Out-Null
Import-PfxCertificate -FilePath .\client.pfx -CertStoreLocation Cert:\CurrentUser\My -Password $password | Out-Null

netsh wlan add profile filename=".\widas-profile.xml" user=current

user=current installs the profile for the signed-in user only. Check the netsh output on a pilot machine: it says whether the profile was added, and why not if it wasn't.

Check it worked​

On a pilot machine, signed in as a user who should be connected:

  • netsh wlan show profiles lists your friendlyName.
  • certmgr.msc shows the client certificate under Personal → Certificates, with a private key, and the issuing CA under Intermediate Certification Authorities.
  • Near a Wi-DAS hotspot, the machine connects without asking anything. If it prompts for a certificate, the issuing CA is missing or its thumbprint is wrong. If it fails silently, check the server root thumbprint and homeFqdn.

Removing it​

Removing the profile and the certificate stops the machine joining. Delete the nodes you added, remove the assignments in Intune, or run:

netsh wlan delete profile name="<friendlyName>"
Get-ChildItem Cert:\CurrentUser\My | Where-Object Thumbprint -eq '<client certificate thumbprint>' | Remove-Item

That only tidies the machine. A copy of the .pfx would still work elsewhere. To take a user off the network for good, ask Wi-DAS to revoke the certificate: the RADIUS servers refuse a revoked certificate wherever it's installed.

Using both options​

Pick one option per machine. Don't push this profile to a machine that also runs your Wi-DAS-enabled app.

Both write a Wi-Fi profile with the same name, your friendlyName. When a profile pushed for every user (./Device, or Group Policy) is already there, Windows won't let the SDK add its own, so Connect() fails with passpointInstallFailed. The SDK never removes an all-user or Group Policy profile, so the app can't fix this itself. Remove the MDM profile from that machine first.

A profile pushed for one user (./User, or the script above) is the same kind the SDK writes. The SDK replaces it on Connect() and deletes it on Disconnect(), so your MDM and the app end up fighting over it.

A fleet can still use both options, as long as each machine gets only one: the profile on some machines and the app on others.