SslClientAuthenticationOptions.CertificateRevocationCheckMode 属性
定义
获取或设置证书验证的证书吊销模式。Gets or sets the certificate revocation mode for certificate validation.
public:
property System::Security::Cryptography::X509Certificates::X509RevocationMode CertificateRevocationCheckMode { System::Security::Cryptography::X509Certificates::X509RevocationMode get(); void set(System::Security::Cryptography::X509Certificates::X509RevocationMode value); };
public System.Security.Cryptography.X509Certificates.X509RevocationMode CertificateRevocationCheckMode { get; set; }
member this.CertificateRevocationCheckMode : System.Security.Cryptography.X509Certificates.X509RevocationMode with get, set
Public Property CertificateRevocationCheckMode As X509RevocationMode
属性值
X509RevocationMode 中的值之一。One of the values in X509RevocationMode. 默认值为 NoCheck。The default is NoCheck.
例外
此值包含无效枚举值。The value contains an invalid enumeration value.
注解
使用证书时,系统通过检查客户端证书不在吊销证书列表中来验证客户端证书未被吊销。When using certificates, the system validates that the client certificate is not revoked by checking that the client certificate is not in the revoked certificate list. 可以通过联机检查或根据缓存的吊销列表来执行此验证。This validation can be performed by checking online or against a cached revocation list. 您可以通过将此属性设置为来关闭吊销检查 NoCheck 。You can turn off revocation checking by setting this property to NoCheck.
有关详细信息,请参阅使用 证书。For more information, see Working with Certificates.