Skip to main content

Windows SDK overview

WiDas.Sdk.Windows is a .NET package that adds Wi-DAS Passpoint onboarding to a Windows desktop app. It generates a device key, gets a signed client certificate, and installs the Passpoint profile that uses it. The surface matches iOS and Android: connect, status and disconnect.

Like the iOS and Android SDKs on their recommended route, it hands its signing request to a Broker, a backend service you run, and your Broker gets the certificate. On Windows there's no alternative: it has no equivalent of App Attest or Play Integrity, so the SDK can't prove your app is genuine to Wi-DAS by itself. Read Brokered issuance before you start; the Broker is the larger part of a Windows integration.

At a glance​

Distributionnuget.org (WiDas.Sdk.Windows)
Target frameworks.NET Framework 4.8 (net48) and .NET 10 (net10.0-windows)
Minimum OSWindows 10 1607 (build 14393)
IssuanceThrough your Broker
Device keyNon-exportable, in the TPM where there is one (EC P-256, or RSA-2048 where P-256 isn't available)
Passpoint installPer-user WLAN profile
Administrator rightsNot needed
TelemetryNone

The public surface​

using WiDas.Sdk.Windows;

// One flow per app. Your IBroker implementation carries the signing request to your Broker.
var flow = new OnboardingFlow(clientId: "client-acme", broker: myBroker);

// Advisory status. Check it before connecting; status.Expiry says until when.
ConnectionStatus status = await Task.Run(() => flow.Status());

// Onboard the user only when there's no usable certificate, because each call issues a new one.
// Synchronous and blocking, so run it off the UI thread.
if (status.State is ConnectionState.None or ConnectionState.Expired or ConnectionState.Revoked)
{
await Task.Run(() => flow.Connect(user: "user-42", requestedValidity: "P365D"));
}

// Remove the profile and the certificate.
Reconciliation removed = flow.Disconnect();
MemberWhat it does
new OnboardingFlow(clientId, broker)Binds the SDK to your Wi-DAS client identifier and your Broker. Ships no secret.
new OnboardingFlow(clientId, broker, additionalServerTrustRoots)The same, plus extra root certificates the profile should accept the Wi-DAS RADIUS servers under. Only needed if we tell you to; see Usage.
Connect(user, requestedValidity?)Onboards the user, issuing a new certificate. Call it when Status() reports None, Expired or Revoked, not on every launch.
Status()Where this machine stands, as a ConnectionStatus with a State (None, Valid, Expired, Revoked or Unknown). Advisory.
Disconnect()Removes the Passpoint profile and the certificate.
IBrokerThe interface you implement to reach your Broker.

What the SDK leaves on the machine​

Everything is per-user, which is why no administrator rights are needed.

ArtefactWhereRemoved by
Passpoint profileA per-user WLAN profile for your realm. All-user and Group Policy profiles are never touchedDisconnect(), and replaced by each Connect()
Client certificateThe user's personal certificate store (CurrentUser\My)Disconnect(), and replaced by each Connect()
Issuing CA certificateThe user's intermediate certificate store (CurrentUser\CA), when your Broker returns it (see Returning the issuing CA)Disconnect(), if the SDK added it and no certificate left in the user's personal store still needs it
Realm recordHKCU\Software\WiDas\Sdk\Clients\<your client ID, encoded>: a REG_MULTI_SZ value named Realms, listing the realms your Passpoint profiles were installed under. Disconnect() uses it to find the profile if the certificate has goneDisconnect(), along with the profile. The key is deleted once it's empty. With no Wi-Fi adapter present (disabled or unplugged), the record stays until a later Disconnect() can look for the profile
Device keyA non-exportable, per-user CNG key named WiDas.Device, in the TPM where there is oneKept on purpose (see below)

The issuing CA is the Wi-DAS certificate authority that signed the client certificate. The SDK installs it so that Windows picks the right certificate on its own instead of asking the user to choose one. It never goes into a root store or a machine-wide store, and it gives the machine no new trust: an intermediate certificate on its own isn't a trust anchor. If an identical copy is already there, the SDK leaves it alone and never removes it.

Apart from these, the SDK writes no files or registry entries of its own. Inside an MSIX package, the realm record goes to the package's private copy of the registry, which works: the package reads back what it wrote, and on Windows 11 the record is removed with the package. (Windows keeps the user's certificate stores partly in the registry, under HKCU\Software\Microsoft\SystemCertificates, which matters if you ship as MSIX; see Setup.)

The device key survives Disconnect(). It identifies this user on this machine, so the next Connect() replaces their old certificate there instead of adding a second one alongside it.

When your app is uninstalled​

Uninstalling your app doesn't remove any of the above. An MSIX package gets no uninstall hook, and an MSI's uninstall actions can't reach the per-user profile and certificate of every user on the machine. So the profile, the certificates, the realm record and the key stay behind, and the machine keeps joining the network until the certificate expires or is revoked. (Inside an MSIX package on Windows 11, the realm record is the one exception: it lives in the package's private registry and goes with it.)

That's a tidiness problem, not a security one. Access is enforced on the network side: the Wi-DAS RADIUS servers check every connection against the certificate revocation list (CRL), and refuse a revoked certificate whatever is still installed on the machine. Clearing up the machine never cuts off access, so if a user or machine must lose access, ask Wi-DAS to revoke the certificate. To keep machines tidy, call Disconnect() from your app's sign-out or "remove Wi-Fi" action before the user uninstalls. On managed machines where the app has already gone, the cleanup script clears what it left.

Next steps​

  1. Installation: add the package.
  2. Setup: your Broker, registration, and running with full trust.
  3. Usage: implementing IBroker and wiring the three calls into your app.
  4. Error handling: the WiDasException codes and what to do about each.
  5. For managed machines: deploy the app or configure Passpoint through Intune or another MDM.