CMSSign.SDK.DotNet
1.2.2
dotnet add package CMSSign.SDK.DotNet --version 1.2.2
NuGet\Install-Package CMSSign.SDK.DotNet -Version 1.2.2
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="CMSSign.SDK.DotNet" Version="1.2.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CMSSign.SDK.DotNet" Version="1.2.2" />
<PackageReference Include="CMSSign.SDK.DotNet" />
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 CMSSign.SDK.DotNet --version 1.2.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: CMSSign.SDK.DotNet, 1.2.2"
#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 CMSSign.SDK.DotNet@1.2.2
#: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=CMSSign.SDK.DotNet&version=1.2.2
#tool nuget:?package=CMSSign.SDK.DotNet&version=1.2.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
CMS Sign SDK (.NET 9 / .NET 10)
Client for the CMS Sign localhost agent. Default: digest in, signature bytes out. Your app embeds the signature into PDF/CMS.
NuGet: CMSSign.SDK.DotNet (single package, includes Contracts / Core).
Agent: install CMSSign.msi — https://localhost:55111 (not 127.0.0.1).
Install from local nupkg
# From the CMS.Signer repo
.\sdk\Pack-DotNetSdk.ps1
dotnet add package CMSSign.SDK.DotNet --version 1.1.0 --source D:\Projects\CMS.Signer\artifacts\nuget
Or copy artifacts/nuget/CMSSign.SDK.DotNet.1.1.0.nupkg into your solution’s nupkgs\ folder and add a nuget.config source.
Digest signing (default)
using CMSSign.Contracts.Requests;
using CMSSign.Core;
using CMSSign.SDK.DotNet;
byte[] digest = SHA256.HashData(documentBytes); // 32 bytes — not the PDF
using var client = new CmsSignClient("https://localhost:55111");
await client.AuthenticateAsync("wdra");
var tokens = await client.GetTokensAsync();
var tokenId = tokens.Data![0].Id;
var certs = await client.GetCertificatesAsync(tokenId);
var thumb = certs.Data![0].Thumbprint;
var login = await client.LoginWithPromptAsync(tokenId, thumb, reason: "Sign document");
var signed = await client.SignHashAsync(new SignHashRequest
{
SessionId = login.Data!.SessionId,
CertificateThumbprint = thumb,
HashBase64 = Convert.ToBase64String(digest),
Algorithm = HashAlgorithmKind.Sha256
});
await client.LogoutAsync(new TokenLogoutRequest { SessionId = login.Data.SessionId });
byte[] signature = Convert.FromBase64String(signed.Data!.SignatureBase64);
// attach to your PDF / CMS builder (same as old rsa.SignHash output)
SignPdfAsync is only for the local CMS Sign portal.
Integration prompt (paste into another solution)
See docs/DOTNET-SDK-INTEGRATION.md.
Features
- net9.0 and net10.0
- Bearer JWT + automatic
X-Nonce - Retry on 5xx
SignHashAsync— defaultLoginWithPromptAsync— PIN stays in the agent UI
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- No dependencies.
-
net9.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.