X509ServiceCertificateAuthentication.RevocationMode Propiedad

Definición

Obtiene o establece el modo de revocación de certificados para el modo de validación de certificados ChainTrust y PeerOrChainTrust X.509.

public:
 property System::Security::Cryptography::X509Certificates::X509RevocationMode RevocationMode { System::Security::Cryptography::X509Certificates::X509RevocationMode get(); void set(System::Security::Cryptography::X509Certificates::X509RevocationMode value); };
public System.Security.Cryptography.X509Certificates.X509RevocationMode RevocationMode { get; set; }
member this.RevocationMode : System.Security.Cryptography.X509Certificates.X509RevocationMode with get, set
Public Property RevocationMode As X509RevocationMode

Valor de propiedad

Uno de los valores de X509RevocationMode: NoCheck, Onlineo Offline.

Excepciones

Se intentó establecer cuando la credencial es de solo lectura.

Ejemplos

En el código siguiente se muestra cómo establecer esta propiedad.

ClientCredentials creds = new ClientCredentials();

// Configure chain trust.

creds.ServiceCertificate.Authentication.CertificateValidationMode =
X509CertificateValidationMode.ChainTrust;

creds.ServiceCertificate.Authentication.RevocationMode =
X509RevocationMode.NoCheck;
Dim creds As New ClientCredentials()

' Configure chain trust.

creds.ServiceCertificate.Authentication.CertificateValidationMode = X509CertificateValidationMode.ChainTrust

creds.ServiceCertificate.Authentication.RevocationMode = X509RevocationMode.NoCheck

La propiedad también se puede establecer en un archivo de configuración.

Comentarios

Cuando se usan certificados, el sistema valida que el certificado de cliente no se ha revocado, comprobando que el certificado de cliente no está en la lista de certificados revocados. Esta comprobación se puede realizar comprobando en línea o comprobando en una lista de revocación almacenada en caché. La comprobación de revocación se puede desactivar estableciendo esta propiedad NoChecken .

Se aplica a