SimpleSign.Peru.Iofe.Accredited 1.1.0

dotnet add package SimpleSign.Peru.Iofe.Accredited --version 1.1.0
                    
NuGet\Install-Package SimpleSign.Peru.Iofe.Accredited -Version 1.1.0
                    
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.Peru.Iofe.Accredited" Version="1.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SimpleSign.Peru.Iofe.Accredited" Version="1.1.0" />
                    
Directory.Packages.props
<PackageReference Include="SimpleSign.Peru.Iofe.Accredited" />
                    
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.Peru.Iofe.Accredited --version 1.1.0
                    
#r "nuget: SimpleSign.Peru.Iofe.Accredited, 1.1.0"
                    
#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.Peru.Iofe.Accredited@1.1.0
                    
#: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.Peru.Iofe.Accredited&version=1.1.0
                    
Install as a Cake Addin
#tool nuget:?package=SimpleSign.Peru.Iofe.Accredited&version=1.1.0
                    
Install as a Cake Tool

SimpleSign.Peru.Iofe.Accredited

The configuration of SimpleSign that INDECOPI's Guía de Acreditación de Aplicaciones de Software (v4.0) asks for in sections 4.2 (signing by automated agents), 4.3 (verification by automated agents) and 4.4 (time-stamp requests), as a narrow API with nothing to relax:

  • the private key signs only inside a cryptographic module: the organization's, through PKCS#11 (a key the driver does not report as sensitive and not extractable is refused), or that of a remote signing service the operator declares (Cloud Signature Consortium API v2: only the hash is sent). A PKCS#12 (PFX) file is not accepted;
  • the checks of the certificate (trust, revocation by CRL or OCSP, validity, nonRepudiation, algorithms) are fixed — no policy is taken from the caller; the one exception is a declared contingency, written to the audit trail;
  • every signature made or refused, and every verification, is recorded in a hash-chained audit trail;
  • an agent signs only for the kinds of transaction it was set up for;
  • a rejected document produces a notice to its sender;
  • each time-stamp is checked: it comes from the authority asked, its signature verifies, and the authority's certificate is trusted, not expired and not revoked;
  • beyond the guide, a signed document can be kept for the long term: IofeAugmentationAgent raises it to B-LTA, or renews its archive time-stamp, with the declared authority only, after validating it, and records each one.
using SimpleSign.Peru.Iofe.Accredited;

await using var agent = await IofeSigningAgent.OpenAsync(new IofeSigningAgentOptions
{
    Module = new Pkcs11SignerOptions { LibraryPath = hsmDriver, TokenLabel = "firma", KeyLabel = "sello-2026", Pin = pin },
    ModuleDeclaration = new IofeModuleDeclaration("Thales", "Luna K7", "FIPS 140-2 Level 3", "4090"),
    Audit = new JsonLinesAuditSink("/var/log/firma/auditoria.jsonl"),
    Transactions = ["factura", "constancia"],
    Timestamp = new IofeTimestampAuthority(new Uri(tsaUrl), tsaCertificate),
});
IofeSignedDocument signed = await agent.SignPdfAsync(pdf, new IofeTransaction("factura", "F001-123"));

await using var verifier = await IofeVerificationAgent.CreateAsync(new IofeVerificationAgentOptions
{
    Audit = new JsonLinesVerificationAuditSink("/var/log/firma/verificacion.jsonl"),
    Notifier = notifier,                                   // IIofeSenderNotifier: how the notice reaches the sender
});
IofeVerification result = await verifier.VerifyAsync(received, new IofeSender("20123456789", "mesa@entidad.pe"));

By default both trust INDECOPI's trusted list (IofeTrust.IndecopiList()), kept current. The manuals the guide asks for (administration, user, programmer, security configuration, scope) are under docs/accreditation, and in Spanish under docs/es/acreditacion. The simplesign iofe commands come with the CLI extension SimpleSign.Peru.Iofe.Accredited.Cli. MIT licensed.

Being accredited is a decision of INDECOPI about a product and its operation: this package gives the software part, and the manuals say what remains with the operator (the module's certification, key custody, access control).

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

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
1.1.0 47 11/19/2026
1.0.0 51 11/19/2026
0.14.0 52 11/19/2026
0.13.0 51 11/18/2026