Table of Contents

Class SignatureVerifySettings

Namespace
NuGet.Packaging.Signing
Assembly
Chocolatey.NuGet.Packaging.dll

Settings to customize Signature.Verify behavior.

public sealed class SignatureVerifySettings
Inheritance
SignatureVerifySettings
Inherited Members

Constructors

SignatureVerifySettings(bool, bool, bool, bool, bool, RevocationMode)

public SignatureVerifySettings(bool allowIllegal, bool allowUntrusted, bool allowUnknownRevocation, bool reportUnknownRevocation, bool reportUntrustedRoot, RevocationMode revocationMode)

Parameters

allowIllegal bool
allowUntrusted bool
allowUnknownRevocation bool
reportUnknownRevocation bool
reportUntrustedRoot bool
revocationMode RevocationMode

Properties

AllowIllegal

Allow packages with signatures that do not conform to the specification.

public bool AllowIllegal { get; }

Property Value

bool

AllowUnknownRevocation

Specifies that a signing certificate's chain with unknown revocation is allowed. If set to true, offline revocation is allowed.

public bool AllowUnknownRevocation { get; }

Property Value

bool

AllowUntrusted

Specifies that a signing certificate's chain that chains to an untrusted root is allowed

public bool AllowUntrusted { get; }

Property Value

bool

Default

Get default settings values for relaxed verification on a signature

public static SignatureVerifySettings Default { get; }

Property Value

SignatureVerifySettings

ReportUnknownRevocation

Indicates if unknown revocation status should be reported.

public bool ReportUnknownRevocation { get; }

Property Value

bool

ReportUntrustedRoot

Indicates if a signing certificate that chains to an untrusted root should be reported.

public bool ReportUntrustedRoot { get; }

Property Value

bool

RevocationMode

Gets how the revocation verification should be performed.

public RevocationMode RevocationMode { get; }

Property Value

RevocationMode