Table of Contents

Enum SignatureVerificationStatusFlags

Namespace
NuGet.Packaging.Signing
Assembly
Chocolatey.NuGet.Packaging.dll
[Flags]
public enum SignatureVerificationStatusFlags

Fields

CertificateExpired = 256

Signing certificate has expired

CertificatePublicKeyInvalid = 32

Public key does not conform with the requirements of the spec

CertificateRevoked = 16384

Signing certificate was revoked

CertificateValidityInTheFuture = 128

Signer certificate's validity is in the future

ChainBuildingFailure = 4096

Chain building failures. Some specific chain building failures (like revocation, revocation status unavailable, certificate expired, etc.) are not covered by this flag because they are covered specially by another status flag.

GeneralizedTimeOutsideValidity = 65536

The Timestamp's generalized time was outside certificate's validity period

HasLifetimeSigningEku = 64

Signing certificate has lifetimeSigningEku

HashAlgorithmUnsupported = 512

Hashing algorithm is not supported

Illegal = NoCertificate | MultipleSignatures | SignatureCheckFailed | SignatureAlgorithmUnsupported | CertificatePublicKeyInvalid | HasLifetimeSigningEku | CertificateValidityInTheFuture | HashAlgorithmUnsupported | MessageImprintUnsupportedAlgorithm

Flags which indicate that the signed package is illegal.

IntegrityCheckFailed = 2048

Integrity check of the signature failed

MessageImprintUnsupportedAlgorithm = 1024

Message imprint uses a hash algorithm that is not supported

MultipleSignatures = 4

Multiple signatures were found

MultipleTimestamps = 262144

Multiple timestamps were found.

NoCertificate = 2

Signer certificate was not found

NoErrors = 0

There was no error found

NoSignature = 1

A signature was not found

NoValidTimestamp = 131072

A valid timestamp was not found.

SignatureAlgorithmUnsupported = 16

Signature algorithm is not supported

SignatureCheckFailed = 8

A call to SignedCms.CheckSignature failed

Suspect = IntegrityCheckFailed | CertificateRevoked

Flags which indicate that the signed package is suspect.

UnknownRevocation = 8192

Revocation information was unavailable or was offline for the signer certificate

Untrusted = NoSignature | CertificateExpired | ChainBuildingFailure | UnknownRevocation | UntrustedRoot | GeneralizedTimeOutsideValidity

Flags which indicate that the signed package is untrusted.

UntrustedRoot = 32768

Signing certificate chains to a certificate untrusted by the computer performing the verification