Verification Result Enum
Specifies most of the result codes for signature verification.
public enum class SignatureVerificationResult
public enum SignatureVerificationResult
type SignatureVerificationResult =
Public Enum SignatureVerificationResult
The identity of the assembly specified in the /asm:assembly/asm:assemblyIdentity node of the manifest does not match the identity of the assembly in the Authenticode signature in the /asm:assembly/ds:signature/ds:KeyInfo/msrel:RelData/r:license/r:grant/as:ManifestInformation/as:assemblyIdentity node.
The digital signature of the object did not verify.
The signature format is invalid.
The basic constraint extension of a certificate has not been observed.
The certificate has expired.
The certificate was explicitly marked as not trusted by the user.
The certificate is missing or has an empty value for an important field, such as a subject or issuer name.
The certificate is not trusted explicitly.
The certificate has been revoked.
The certificate cannot be used for signing and verification.
The strong name signature does not verify in the AuthenticodeSignatureInformation object. Because the strong name signature wraps the Authenticode signature, someone could replace the Authenticode signature with a signature of their choosing. To prevent this, this error code is returned if the strong name does not verify because substituting a part of the strong name signature will invalidate it.
The chain could not be built.
There is a general trust failure with the certificate.
The certificate has an invalid name. The name is either not included in the permitted list or is explicitly excluded.
The certificate has an invalid policy.
The certificate has an invalid role.
The signature of the certificate cannot be verified.
The certificate has an invalid usage.
One of the counter signatures is invalid.
The certificate for the signer of the message is invalid or not found.
A certificate was issued after the issuing certificate has expired.
The time stamp signature or certificate could not be verified or is malformed.
A parent of a given certificate did not issue that child certificate.
The signature is missing.
A path length constraint in the certification chain has been violated.
The public key token from the manifest identity in the /asm:assembly/asm:AssemblyIdentity node does not match the public key token of the key that is used to sign the manifest.
The publisher name from /asm:assembly/asmv2:publisherIdentity does not match the subject name of the signing certificate, or the issuer key hash from the same publisherIdentity node does not match the key hash of the signing certificate.
The revocation check failed.
A system-level error occurred while verifying trust.
A certificate contains an unknown extension that is marked critical.
The certificate has an unknown trust provider.
The certificate has an unknown verification action.
The certification chain processed correctly, but one of the CA certificates is not trusted by the policy provider.
The root certificate is not trusted.
The test root certificate is not trusted.
The certificate verification result is valid.
A successful verification returns the Valid result.
HRESULT values are generally returned by the unmanaged Microsoft Cryptographic API (CAPI); the other values are set by managed verification. This enumeration is not comprehensive of all possible HRESULT values and is subject to change.