WiDas.Sdk.Windows 0.5.1

dotnet add package WiDas.Sdk.Windows --version 0.5.1
                    
NuGet\Install-Package WiDas.Sdk.Windows -Version 0.5.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="WiDas.Sdk.Windows" Version="0.5.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="WiDas.Sdk.Windows" Version="0.5.1" />
                    
Directory.Packages.props
<PackageReference Include="WiDas.Sdk.Windows" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add WiDas.Sdk.Windows --version 0.5.1
                    
#r "nuget: WiDas.Sdk.Windows, 0.5.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package WiDas.Sdk.Windows@0.5.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=WiDas.Sdk.Windows&version=0.5.1
                    
Install as a Cake Addin
#tool nuget:?package=WiDas.Sdk.Windows&version=0.5.1
                    
Install as a Cake Tool

WiDas.Sdk.Windows

The Wi-DAS Windows SDK. It onboards a User on a Device to the Wi-DAS network: it generates a Device key, obtains a signed certificate through a Broker your application provides, and installs the Passpoint Profile that uses it. It runs without administrator rights and without a store runtime, so it suits MDM-provisioned estates as well as desktop applications.

dotnet add package WiDas.Sdk.Windows

The package is on nuget.org and needs no feed or credentials to restore. Having it grants no access to Wi-DAS: a certificate comes only through a Partner's Broker.

Requirements

Windows 10 1607 (10.0.14393) or later. Below that, Connect throws WiDasException.EntitlementMissing (code entitlementMissing) before it writes anything to the machine, with the platform's PlatformNotSupportedException as its inner exception. The floor is set conservatively: Microsoft has never published a minimum build for the WLANProfile Hotspot2 element the Passpoint Profile depends on, so the SDK refuses a Windows that might have worked rather than install a profile that cannot.

Nothing in the package enforces this at compile time. net48 runs on Windows 7 SP1 and 8.1, so an application can load the SDK there, and the refusal arrives at run time.

Choosing the client certificate

Return the issuing CA your Device certificates chain to as IssuanceResponse.IssuingCaPem (the Partner API's chainPem). The SDK then writes the EAP-TLS certificate filter into the Passpoint Profile, so Windows selects this Device's certificate itself instead of asking the User to choose between every client certificate on the machine. Leave it null and the profile is unchanged.

When it is given, the SDK names the certificate in it that signed the Device certificate: a Certificate Authority, named as the leaf's issuer, whose key verifies the leaf's signature. It may be that CA alone or a bundle holding it. Where no certificate qualifies, or the value cannot be read, the profile is written with no filter, as if the field were absent, and the reason is traced as a warning through System.Diagnostics.Trace. It never fails the connect. A bundle holding any certificate whose extensions the platform cannot read is not used at all, even when the CA that signed the Device certificate is in it too: no filter and no CA installed, so Windows may ask the User to choose a certificate.

The SDK also installs that CA beside the Device certificate, into the current User's Intermediate Certification Authorities store (CurrentUser\CA), because Windows matches the filter against the certificate's chain and the Device certificate carries no AIA pointer to fetch the CA from. It never writes to a Root store or a machine store, and leaves an identical CA that was already there untouched. Where no certificate qualified, nothing is installed beside the Device certificate. Disconnect removes the CA again where the SDK added it, unless a certificate left in the User's personal store needs it: one whose Windows-built chain passes through the CA, one the SDK's own check shows the CA's key signed, or one that cannot be checked by either.

In an MSIX package

CurrentUser\CA lives in the registry, under HKCU\Software\Microsoft\SystemCertificates, and a packaged app's writes under HKCU go to a private, per-package hive. If your application ships in an MSIX package, exclude that key from registry write virtualisation, or the CA lands in the private hive and Windows never selects the Device certificate (EAP 0x80420014). Declare the desktop6 and virtualization namespaces as ignorable, and in the manifest:

<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 reads the excluded key; Windows 10 1903 and later read the desktop6 fallback, which turns HKCU write virtualisation off for the whole package; 1809 reads neither. unvirtualizedResources is a restricted capability, which a Store submission must justify. See Flexible virtualization. The Device certificate has been seen to reach the real personal store without this, because that store keeps its certificates as files, but that is observed rather than documented: check it.

Disconnecting

Disconnect removes the Passpoint Profile, the Device certificate and the issuing CA beside it, and keeps the Device key, which is the Device's identity. It throws WiDasException.PasspointInstallFailed where something it set out to remove is still on the machine, with the per-step report on the exception's Reconciliation. Calling it again, or calling it after a Connect that failed before installing anything, returns NothingToRemove for both steps.

To find the profile once the certificate has gone, the SDK records the realm of each Passpoint Profile it installs, per Client and per User, in HKCU\Software\WiDas\Sdk\Clients\<clientId>: a REG_MULTI_SZ value named Realms. In the key name, every character of the Client identifier other than a lower-case letter, a digit, - or _ is written as %XX of its UTF-8 bytes, so Client-1 is %43lient-1; an identifier too long for that (more than 255 characters once written out) or holding a lone surrogate is named ~ followed by the SHA-256 of its UTF-16 code units in hex instead. Disconnect drops each realm once its profile is gone and deletes the key with the last one, so a machine that has disconnected holds nothing of the SDK's in the registry. A realm whose profile would not come off stays recorded for the next attempt, and so does one swept for while the machine had no wireless interface (an adapter disabled or unplugged still holds its profile), so a machine with no Wi-Fi adapter can keep a record.

Connect records the realm just before it installs the profile, and withdraws it again where that install refuses, which it does only where the profile went on no wireless interface. So a Connect on a host without usable Native WiFi, or without a Wi-Fi adapter, leaves no record behind. A record Connect cannot write is traced as a warning through System.Diagnostics.Trace and never fails the connect. A record Disconnect cannot read makes it throw, because the profile may then be on the machine with nothing left to find it by. With neither a certificate nor a recorded realm, nothing the SDK installed can be identified, so Disconnect reports NothingToRemove: a profile installed by a version of the SDK from before the record, whose certificate has since gone, is not found.

Inside an MSIX package on Windows 11, with only HKCU\Software\Microsoft\SystemCertificates excluded from registry write virtualisation (as In an MSIX package asks), the record lands in the package's private hive. That works: the package reads back what it wrote, and the record goes with the package on uninstall. Under the Windows 10 desktop6 fallback it reaches the real registry and outlives an uninstall, as everything the package writes under HKCU does there.

Returning the server-trust CA

IssuanceResponse.ServerCaPem must be exactly one PEM certificate, a Certificate Authority, that chains to a root this machine trusts for server authentication; the Passpoint Profile pins that root. A root Windows trusts but has disabled for server authentication is refused. Where ServerCaPem is itself the root, return it exactly as published, as exported from a root store: the pin is a hash of those bytes, and a copy re-encoded where its signature does not reach would hash to a thumbprint no store holds. For a root signed with SHA-256, SHA-384 or SHA-512 over RSA or ECDSA, the SDK refuses every such re-encoding the standards forbid, and one they allow remains for ECDSA roots (an equally valid twin signature). Where a root store holds the genuine root, a copy whose thumbprint no store holds is refused as well, which catches that twin. A root signed under any other algorithm, SHA-1 among them, is held to fewer of those rules. Either way, the bytes you return are the pin. Anything else is refused at Connect as WiDasException.PasspointInstallFailed, before the SDK changes anything on the machine: an ArgumentException underneath for a value that is malformed, including a root that is not strictly encoded and a CA whose basic constraints or extensions the platform cannot read, and a CryptographicException for one this machine does not trust for server authentication. A re-encoding Windows' own chain engine rejects - an RSA signature with a leading zero octet, for one - is in the second group: it is refused as untrusted, with the chain engine's NotSignatureValid, rather than as not strictly encoded.

Pinning additional server-trust roots

For a RADIUS server under a cross-certified CA, the root Windows ends the server's certificate chain at need not be the root your issuance response's ServerCaPem resolves to, and a Passpoint Profile pinning only that root then refuses the server (EAP Reason 0x800B0109). Ameriband's RADIUS server is one: on the PCs tested, Windows ended its chain at Sectigo Public Server Authentication Root R46, which it trusts natively, while ServerCaPem resolves to USERTrust RSA through the cross-certificate. Pinning R46 as well made a tester's PC connect on 9 October 2026; that Windows accepts the server under any one of the pinned roots is that field result rather than documented platform behaviour.

Pass the extra roots, as PEM, to the third constructor:

var flow = new OnboardingFlow(clientId, broker, new[] { sectigoR46Pem });

Each is pinned as a further TrustedRootCA, after ServerCaPem's own root and in your order. A root already pinned is written once. The profile's server name is unchanged: the roots widen which CA may sign the server's certificate, not which server is accepted. Without them, use the two-argument constructor; its profile is unchanged.

Each root must be exactly one PEM certificate, a Certificate Authority, self-signed (its signature must verify under its own public key), strictly encoded, and trusted by this machine for server authentication, with its chain ending at the root as you supplied it. The SDK never installs one. Supply each root exactly as published, as exported from a root store: the thumbprint pinned is a hash of the bytes you pass, and a copy re-encoded where its signature does not reach would hash to a thumbprint no store holds. The SDK refuses every such re-encoding the standards forbid; one they allow remains for ECDSA roots (an equally valid twin signature), refused only where a root store holds the genuine root, so the bytes you pass are the pin. RSA roots may carry NULL or absent signature parameters. Roots self-signed under SHA-1, MD5 or RSA-PSS, ECDSA roots whose signature algorithm carries parameters, and v1 roots with no basic constraints cannot be pinned. Anything else is refused at Connect as WiDasException.PasspointInstallFailed, naming the root's index, before the SDK changes anything on the machine: an ArgumentException underneath for a root that is malformed or unreadable, and a CryptographicException for one this machine does not trust for server authentication. A null list, or a null root in it, is refused by the constructor with ArgumentNullException. The list is copied when the flow is built.

Target frameworks

One package covers both:

  • net48 — .NET Framework 4.8
  • net10.0-windows — .NET 10 on Windows

Neither takes a third-party crypto dependency. The Signing Request is built with the platform's own PKCS#10 builder on both.

Debugging

The package carries a portable PDB beside each assembly, so a stack trace through the SDK names its source files and lines. The PDBs also carry Source Link to the commit the package was built from, but the source repository is not public, so a debugger cannot fetch the SDK's source from it.

License

Use of the SDK is governed by the Wi-DAS SDK License Agreement. See LICENSE.txt in the package. The package includes no third-party components; packages it declares as dependencies are licensed under their own terms.

Product Compatible and additional computed target framework versions.
.NET net10.0-windows7.0 is compatible. 
.NET Framework net48 is compatible.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.8

    • No dependencies.
  • net10.0-windows7.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.5.1 57 11/27/2026