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
<PackageReference Include="SimpleSign.Peru.Iofe.Accredited" Version="1.1.0" />
<PackageVersion Include="SimpleSign.Peru.Iofe.Accredited" Version="1.1.0" />
<PackageReference Include="SimpleSign.Peru.Iofe.Accredited" />
paket add SimpleSign.Peru.Iofe.Accredited --version 1.1.0
#r "nuget: SimpleSign.Peru.Iofe.Accredited, 1.1.0"
#:package SimpleSign.Peru.Iofe.Accredited@1.1.0
#addin nuget:?package=SimpleSign.Peru.Iofe.Accredited&version=1.1.0
#tool nuget:?package=SimpleSign.Peru.Iofe.Accredited&version=1.1.0
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:
IofeAugmentationAgentraises 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 | Versions 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. |
-
net10.0
- SimpleSign.CAdES (>= 0.15.0 && < 0.16.0)
- SimpleSign.PAdES (>= 0.15.0 && < 0.16.0)
- SimpleSign.Peru.Iofe (>= 0.15.0 && < 0.16.0)
- SimpleSign.Signers.Cloud (>= 0.15.0 && < 0.16.0)
- SimpleSign.Signers.Pkcs11 (>= 0.15.0 && < 0.16.0)
- SimpleSign.XAdES (>= 0.15.0 && < 0.16.0)
-
net8.0
- SimpleSign.CAdES (>= 0.15.0 && < 0.16.0)
- SimpleSign.PAdES (>= 0.15.0 && < 0.16.0)
- SimpleSign.Peru.Iofe (>= 0.15.0 && < 0.16.0)
- SimpleSign.Signers.Cloud (>= 0.15.0 && < 0.16.0)
- SimpleSign.Signers.Pkcs11 (>= 0.15.0 && < 0.16.0)
- SimpleSign.XAdES (>= 0.15.0 && < 0.16.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.