SimpleSign.CAdES 0.11.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package SimpleSign.CAdES --version 0.11.1
                    
NuGet\Install-Package SimpleSign.CAdES -Version 0.11.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="SimpleSign.CAdES" Version="0.11.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SimpleSign.CAdES" Version="0.11.1" />
                    
Directory.Packages.props
<PackageReference Include="SimpleSign.CAdES" />
                    
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 SimpleSign.CAdES --version 0.11.1
                    
#r "nuget: SimpleSign.CAdES, 0.11.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 SimpleSign.CAdES@0.11.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=SimpleSign.CAdES&version=0.11.1
                    
Install as a Cake Addin
#tool nuget:?package=SimpleSign.CAdES&version=0.11.1
                    
Install as a Cake Tool

SimpleSign.CAdES

Create and validate CAdES digital signatures (ETSI EN 319 122) — CMS/PKCS#7 baseline levels B-B, B-T, B-LT, and B-LTA, detached or enveloped (.p7m). No BouncyCastle — only System.Security.Cryptography.

Quickstart

using SimpleSign.CAdES;
using SimpleSign.Core.Signing;
using SimpleSign.Core.Validation;

byte[] cms = await CadesSigner.Document(File.ReadAllBytes("contract.pdf"))
    .WithCertificate(certificate)
    .WithContentType(CadesContentType.Enveloped)      // or Detached (default)
    .WithLevel(AdesBaselineProfile.Timestamped(timestampOptions))
    .SignAsync();
File.WriteAllBytes("contract.p7m", cms);

// ValidateAsync also checks the revocation of the signer and TSA chains
CadesValidationResult result = await new CadesSignatureValidator(
        new ValidationOptions { TrustedRoots = [certificate] })
    .ValidateAsync(cms, File.ReadAllBytes("contract.pdf"));
Console.WriteLine($"{result.Indication} {result.SubIndication}");

Signing runs SigningPolicy.Default (chain validity, key usage, RSA ≥ 2048, SHA-2/SHA-3); .WithSigningPolicy(SigningPolicy.Load("signing-policy.json")) with NotRevoked at FAIL also checks the revocation of the chain.

When the key is on another machine, sign in two phases: CadesDeferredSigner.Document(data)…PrepareAsync() returns the bytes to sign and a session; CadesDeferredSigner.Resume(session, key).CompleteAsync(signature) finishes the signature.

More at github.com/eupassarin/SimpleSign and the docs. MIT licensed.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  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.

NuGet packages (4)

Showing the top 4 NuGet packages that depend on SimpleSign.CAdES:

Package Downloads
SimpleSign

Meta-package for the SimpleSign signature formats: PAdES (PDF), CAdES and XAdES signing and validation, on SimpleSign.Core.

SimpleSign.Brazil

Shared building blocks of the SimpleSign Brazilian trust frameworks: CPF/CNPJ, Lei 14.063/2020 levels, the advanced-signature (AEA) manifest and the ITI VALIDAR helpers. Used by SimpleSign.Brazil.IcpBrasil and SimpleSign.Brazil.GovBr.

SimpleSign.Brazil.IcpBrasil

ICP-Brasil for SimpleSign: bundled AC Raiz and intermediates, chain validation (DOC-ICP-04), signature policies AD-RB to AD-RA (DOC-ICP-15), standalone ACT timestamps and the Lei 14.063 level of each signature.

SimpleSign.Peru.Iofe.Accredited

The configuration of SimpleSign that INDECOPI's accreditation guide for signature software (v4.0, sections 4.2 to 4.4) asks for, with nothing to relax: signing by an automated agent with the key in a PKCS#11 module or a declared remote signing service, verification by an automated agent with a notice to the sender, the checks of each time-stamp, the viewer and the audit trails.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.15.0 204 11/19/2026
0.14.0 97 11/19/2026
0.13.0 119 11/18/2026
0.12.0 172 11/16/2026
0.11.1 211 11/16/2026
0.11.0 189 11/16/2026
0.10.1 185 11/4/2026
0.10.0 126 11/4/2026
0.9.3 160 11/1/2026
0.9.2 168 10/14/2026
0.9.1 129 10/14/2026
0.9.0 169 9/30/2026
0.8.0 183 9/1/2026
0.7.1 192 7/28/2026
0.7.0 190 6/30/2026
0.6.0 205 6/19/2026
0.5.0 178 6/18/2026