Skip to main content

Setup

Run a Broker​

On Windows, every certificate comes through a Broker you operate. Set it up first, following Brokered issuance: an Entra application with the Broker.Issue role, registered with Wi-DAS, and a service your app can reach that relays to the Wi-DAS Certificate API.

Your app talks to your Broker however you like. The SDK doesn't call Wi-DAS itself; it hands your IBroker implementation a signing request and expects the certificate back. Usage shows an example.

Get registered​

Wi-DAS registers your Broker against your organisation and gives you a clientId for your Windows app. You pass that clientId to OnboardingFlow, and your Broker sends it with each certificate request. Until both are registered, requests come back as entitlementMissing.

Run with full trust​

Windows only lets a full-trust process install the certificate a Wi-Fi profile needs. A sandboxed app can't, so the SDK has to run in one of these:

  • A classic desktop app (WPF, WinForms, console or service host), installed however you normally ship it.
  • An MSIX-packaged app that declares the runFullTrust capability:
<Application Id="App" Executable="YourApp.exe" EntryPoint="Windows.FullTrustApplication">
<!-- ... -->
</Application>

<Capabilities>
<rescap:Capability Name="runFullTrust" />
</Capabilities>

runFullTrust is a restricted capability. Sideloaded and enterprise-deployed packages can use it freely. A Microsoft Store submission needs a short justification, which Microsoft reviews before listing.

MSIX: let the issuing CA reach the real certificate store​

When your Broker returns the issuing CA (see Returning the issuing CA), the SDK installs it in the user's intermediate certificate store, CurrentUser\CA. That store lives in the registry, under HKCU\Software\Microsoft\SystemCertificates, and an MSIX package's writes under HKCU normally go to a private, per-package copy of the registry. Windows' Wi-Fi service never sees that copy, so it can't find the CA, never selects the certificate, and the connection fails (EAP error 0x80420014).

Exclude that key from registry virtualisation in your package manifest. Declare the desktop6 and virtualization namespaces as ignorable, then add:

<Properties>
<desktop6:RegistryWriteVirtualization>disabled</desktop6:RegistryWriteVirtualization>
<virtualization:RegistryWriteVirtualization>
<virtualization:ExcludedKeys>
<virtualization:ExcludedKey>HKEY_CURRENT_USER\Software\Microsoft\SystemCertificates</virtualization:ExcludedKey>
</virtualization:ExcludedKeys>
</virtualization:RegistryWriteVirtualization>
</Properties>

<Capabilities>
<rescap:Capability Name="unvirtualizedResources" />
</Capabilities>

Windows 11 honours the excluded key. Windows 10 1903 and later read the desktop6 setting instead, which turns off HKCU write virtualisation for the whole package. Windows 10 1809 and earlier read neither, so on those the CA stays in the package's private copy. Like runFullTrust, unvirtualizedResources is a restricted capability that a Microsoft Store submission has to justify. Microsoft's flexible virtualization page has the detail.

The client certificate itself has been seen to reach the real personal store without this, but that's observed rather than documented behaviour, so check it on your own package.

A classic, unpackaged desktop app needs none of this.

Elevation​

Your app doesn't need to run elevated. The certificates, key and profile all live in the signed-in user's space, so the app's manifest can stay at asInvoker.

The device key​

On first Connect(), the SDK creates a key in the TPM, through Windows' Platform Crypto Provider: EC P-256, or RSA-2048 on a TPM that can't do P-256. The key can't be exported. On a machine with no usable TPM, it falls back to a software key, which is still non-exportable, and onboarding carries on.

Connection.KeyBacking tells you which one you got (Tpm or Software). The SDK doesn't refuse a software key, so if your organisation requires hardware-backed keys, check it after Connect():

if (connection.KeyBacking != DeviceKeyBacking.Tpm)
{
// Your policy: warn, report, or disconnect.
}

The key also serves as the device identifier, which your Broker passes to Wi-DAS as deviceId. Each of a user's machines therefore keeps its own certificate.

Windows version​

The SDK needs Windows 10 1607 (build 14393) or later. On anything older, Connect() fails with entitlementMissing before it writes anything.

Next: Usage.