SimpleSign.Peru.Iofe
0.11.1
See the version list below for details.
dotnet add package SimpleSign.Peru.Iofe --version 0.11.1
NuGet\Install-Package SimpleSign.Peru.Iofe -Version 0.11.1
<PackageReference Include="SimpleSign.Peru.Iofe" Version="0.11.1" />
<PackageVersion Include="SimpleSign.Peru.Iofe" Version="0.11.1" />
<PackageReference Include="SimpleSign.Peru.Iofe" />
paket add SimpleSign.Peru.Iofe --version 0.11.1
#r "nuget: SimpleSign.Peru.Iofe, 0.11.1"
#:package SimpleSign.Peru.Iofe@0.11.1
#addin nuget:?package=SimpleSign.Peru.Iofe&version=0.11.1
#tool nuget:?package=SimpleSign.Peru.Iofe&version=0.11.1
SimpleSign.Peru.Iofe
IOFE (Peru, Ley 27269) for SimpleSign: trust anchors from INDECOPI's signed trusted list (ETSI TS 119 612 / TS 102 231 v3) and the signing and validation policies of INDECOPI's accreditation guide for signature software (v4.0).
The certificate INDECOPI signs the trusted list with is not bundled: obtain it from INDECOPI and
check its fingerprint out of band. The list is refused when it is signed by any other key.
IofeExtension.LoadRefreshableAsync (or services.AddSimpleSignIofe(options)) keeps the list current.
Quickstart
using SimpleSign.Peru.Iofe;
var iofe = await IofeExtension.LoadAsync(new IofeExtensionOptions
{
TrustedListSigners = [indecopiTslSigner],
CacheFile = "/var/lib/simplesign/tsl-pe.xml", // last good copy, used if the download fails
});
byte[] signed = await PadesSigner.Document(pdf)
.WithCertificate(certificate, chain)
.WithCountryExtension(iofe) // trust anchors: the signer must chain to INDECOPI's list
.WithSigningPolicy(IofePolicies.Signing) // chain, key usage, algorithms, revocation
.SignAsync();
var validator = new PdfSignatureValidator(
new ValidationOptions { Policy = IofePolicies.Validation },
httpClient: null, logger: null, countryExtensions: [iofe]);
var results = await validator.ValidateAsync(File.OpenRead("signed.pdf"));
More at github.com/eupassarin/SimpleSign and the IOFE article. MIT licensed.
| 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
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.14)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.14)
- SimpleSign.Core (>= 0.11.1)
- SimpleSign.XAdES (>= 0.11.1)
-
net8.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.14)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.14)
- SimpleSign.Core (>= 0.11.1)
- SimpleSign.XAdES (>= 0.11.1)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on SimpleSign.Peru.Iofe:
| Package | Downloads |
|---|---|
|
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.