X509ChainStatusFlags 列舉

定義

定義 X509 鏈結狀態。Defines the status of an X509 chain.

此列舉具有 FlagsAttribute 個屬性允許以位元方式合併其成員值。

public enum class X509ChainStatusFlags
public enum X509ChainStatusFlags
[System.Flags]
public enum X509ChainStatusFlags
type X509ChainStatusFlags = 
Public Enum X509ChainStatusFlags
繼承
X509ChainStatusFlags
屬性

欄位

CtlNotSignatureValid 262144

表示此憑證信任清單 (CTL) 包含無效的簽章。Specifies that the certificate trust list (CTL) contains an invalid signature.

CtlNotTimeValid 131072

表示憑證信任清單 (CTL) 無效,因為時間值無效,例如表示 CTL 已過期的時間值。Specifies that the certificate trust list (CTL) is not valid because of an invalid time value, such as one that indicates that the CTL has expired.

CtlNotValidForUsage 524288

表示此憑證信任清單 (CTL) 不適用於此用途。Specifies that the certificate trust list (CTL) is not valid for this use.

Cyclic 128

表示 X509 鏈結無法建立。Specifies that the X509 chain could not be built.

ExplicitDistrust 67108864

表示憑證明確不受信任。Specifies that the certificate is explicitly distrusted.

HasExcludedNameConstraint 32768

表示 X509 鏈結無效,因為憑證已經排除名稱條件約束。Specifies that the X509 chain is invalid because a certificate has excluded a name constraint.

HasNotDefinedNameConstraint 8192

表示該憑證具有未定義的名稱條件約束。Specifies that the certificate has an undefined name constraint.

HasNotPermittedNameConstraint 16384

表示該憑證具有不允許的名稱條件約束。Specifies that the certificate has an impermissible name constraint.

HasNotSupportedCriticalExtension 134217728

表示該憑證不支援關鍵性擴充功能。Specifies that the certificate does not support a critical extension.

HasNotSupportedNameConstraint 4096

表示此憑證沒有支援的名稱條件約束,或具有不受支援的名稱條件約束。Specifies that the certificate does not have a supported name constraint or has a name constraint that is unsupported.

HasWeakSignature 1048576

表示該憑證尚未受到強式簽署。Specifies that the certificate has not been strong signed. 這通常表示曾使用 MD2 或 MD5 雜湊演算法來建立該憑證的雜湊。Typically, this indicates that the MD2 or MD5 hashing algorithms were used to create a hash of the certificate.

InvalidBasicConstraints 1024

表示 X509 鏈結由於基本條件約束無效而無效。Specifies that the X509 chain is invalid due to invalid basic constraints.

InvalidExtension 256

表示 X509 鏈結由於擴充功能無效而無效。Specifies that the X509 chain is invalid due to an invalid extension.

InvalidNameConstraints 2048

表示 X509 鏈結由於名稱條件約束無效而無效。Specifies that the X509 chain is invalid due to invalid name constraints.

InvalidPolicyConstraints 512

表示 X509 鏈結由於原則條件約束無效而無效。Specifies that the X509 chain is invalid due to invalid policy constraints.

NoError 0

表示 X509 鏈結沒有任何錯誤。Specifies that the X509 chain has no errors.

NoIssuanceChainPolicy 33554432

表示在憑證中沒有任何憑證原則擴充功能。Specifies that there is no certificate policy extension in the certificate. 如果群組原則已指定所有憑證必須有憑證原則,就會發生這個錯誤。This error would occur if a group policy has specified that all certificates must have a certificate policy.

NotSignatureValid 8

表示 X509 鏈結由於憑證簽章無效而無效。Specifies that the X509 chain is invalid due to an invalid certificate signature.

NotTimeNested 2

已取代。Deprecated. 表示在 CA (憑證授權單位) 憑證與已發行的憑證之間,有效期間並未呈現巢狀關係。Specifies that the CA (certificate authority) certificate and the issued certificate have validity periods that are not nested. 例如,CA 憑證的有效期間為 1 月 1 日到 12 月 1 日,而已發行憑證的有效期間為 1 月 2 日到 12 月 2 日,這就代表有效期間未呈現巢狀關係。For example, the CA cert can be valid from January 1 to December 1 and the issued certificate from January 2 to December 2, which would mean the validity periods are not nested.

NotTimeValid 1

表示因時間值失效而導致 X509 鏈結無效,例如該值指出憑證已過期的時間。Specifies that the X509 chain is not valid due to an invalid time value, such as a value that indicates an expired certificate.

NotValidForUsage 16

表示金鑰使用方式無效。Specifies that the key usage is not valid.

OfflineRevocation 16777216

表示 X509 鏈結所依賴的線上憑證撤銷清單 (CRL) 目前離線。Specifies that the online certificate revocation list (CRL) the X509 chain relies on is currently offline.

PartialChain 65536

表示 X509 鏈結無法建立到根憑證。Specifies that the X509 chain could not be built up to the root certificate.

RevocationStatusUnknown 64

表示無法判斷是否已撤銷此憑證。Specifies that it is not possible to determine whether the certificate has been revoked. 這可能是因為憑證撤銷清單 (CRL) 離線或無法使用而造成的。This can be due to the certificate revocation list (CRL) being offline or unavailable.

Revoked 4

表示 X509 鏈結由於已撤銷憑證而無效。Specifies that the X509 chain is invalid due to a revoked certificate.

UntrustedRoot 32

表示 X509 鏈結由於根憑證不受信任而無效。Specifies that the X509 chain is invalid due to an untrusted root certificate.

備註

這個列舉會與 X509ChainStatus 結構和 ChainStatus 屬性一起使用。This enumeration is used in conjunction with the X509ChainStatus structure and the ChainStatus property.

ExplicitDistrust、HasNotSupportedCriticalExtension 和 HasWeakSignature 旗標是使用 .NET Framework 4.6.1.NET Framework 4.6.1引進的。The flags ExplicitDistrust, HasNotSupportedCriticalExtension and HasWeakSignature were introduced with the .NET Framework 4.6.1.NET Framework 4.6.1.

適用於